diff options
-rw-r--r-- | NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c index 9287475..bde5982 100644 --- a/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c +++ b/NetworkPkg/Ip6Dxe/Ip6ConfigImpl.c @@ -1327,7 +1327,6 @@ Ip6ConfigSetDnsServer ( {
UINTN OldIndex;
UINTN NewIndex;
- UINTN Index1;
EFI_IPv6_ADDRESS *OldDns;
EFI_IPv6_ADDRESS *NewDns;
UINTN OldDnsCount;
@@ -1372,15 +1371,6 @@ Ip6ConfigSetDnsServer ( return EFI_INVALID_PARAMETER;
}
- for (Index1 = NewIndex + 1; Index1 < NewDnsCount; Index1++) {
- if (EFI_IP6_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
|