X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FIp4Dxe%2FIp4Config2Impl.c;h=6c7ac68791c3c3e638731c1d723d6f047496d679;hp=a6a3da8fe8a0821e8f54ddae6a1593d037f3bd3b;hb=a2f4b153ac5d0039f81bb689ad32cd48ac2aa51d;hpb=770e463d063ed50309274b88a2660289eb23a2f4 diff --git a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c index a6a3da8fe8..6c7ac68791 100644 --- a/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c +++ b/MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Config2Impl.c @@ -705,7 +705,6 @@ Ip4Config2SetDnsServerWorker ( { UINTN OldIndex; UINTN NewIndex; - UINTN Index1; EFI_IPv4_ADDRESS *OldDns; EFI_IPv4_ADDRESS *NewDns; UINTN OldDnsCount; @@ -747,15 +746,6 @@ Ip4Config2SetDnsServerWorker ( return EFI_INVALID_PARAMETER; } - for (Index1 = NewIndex + 1; Index1 < NewDnsCount; Index1++) { - if (EFI_IP4_EQUAL (NewDns + NewIndex, NewDns + Index1)) { - if (Tmp != NULL) { - FreePool (Tmp); - } - return EFI_INVALID_PARAMETER; - } - } - if (OneAdded) { // // If any address in the new setting is not in the old settings, skip the @@ -1495,7 +1485,7 @@ Ip4Config2InitIfInfo ( UnicodeSPrint ( IfInfo->Name, EFI_IP4_CONFIG2_INTERFACE_INFO_NAME_SIZE, - L"eth%x", + L"eth%d", IpSb->Ip4Config2Instance.IfIndex );