Item = &Instance->DataItem[Ip6ConfigDataTypeManualAddress];\r
ManualAddr = NULL;\r
\r
+ if (Item->DataSize == 0) {\r
+ return;\r
+ }\r
+\r
for (Index = 0; Index < Item->DataSize / sizeof (EFI_IP6_CONFIG_MANUAL_ADDRESS); Index++) {\r
//\r
// Find the original tag used to place into the NET_MAP.\r
{\r
UINTN OldIndex;\r
UINTN NewIndex;\r
- UINTN Index1;\r
EFI_IPv6_ADDRESS *OldDns;\r
EFI_IPv6_ADDRESS *NewDns;\r
UINTN OldDnsCount;\r
return EFI_INVALID_PARAMETER;\r
}\r
\r
- for (Index1 = NewIndex + 1; Index1 < NewDnsCount; Index1++) {\r
- if (EFI_IP6_EQUAL (NewDns + NewIndex, NewDns + Index1)) {\r
- if (Tmp != NULL) {\r
- FreePool (Tmp);\r
- }\r
- return EFI_INVALID_PARAMETER;\r
- }\r
- }\r
-\r
if (OneAdded) {\r
//\r
// If any address in the new setting is not in the old settings, skip the\r