mirror of https://github.com/acidanthera/audk.git
NetworkPkg: Fix bug related DAD issue in IP6 driver.
If we set PXEv6 as the first boot option and reboot immediately after the first successful boot, it will assert. the root cause is when we set the policy from manual to automatic in PXE driver, the ip6 Configure item size is already set to zero and other structures are also released, So it is not needed to perform DAD call back function which is invoked by Ip6ConfigSetMaunualAddress. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Zhang Lubo <lubo.zhang@intel.com> Cc: Wu Jiaxin <jiaxin.wu@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Jiaxin Wu <jiaxin.wu@intel.com>
This commit is contained in:
parent
b28bf4143d
commit
52cad7d0d8
|
@ -784,6 +784,10 @@ Ip6ManualAddrDadCallback (
|
|||
Item = &Instance->DataItem[Ip6ConfigDataTypeManualAddress];
|
||||
ManualAddr = NULL;
|
||||
|
||||
if (Item->DataSize == 0) {
|
||||
return;
|
||||
}
|
||||
|
||||
for (Index = 0; Index < Item->DataSize / sizeof (EFI_IP6_CONFIG_MANUAL_ADDRESS); Index++) {
|
||||
//
|
||||
// Find the original tag used to place into the NET_MAP.
|
||||
|
|
Loading…
Reference in New Issue