1. Fix a bug : netboot6 client hangs if DHCPv6 Advertisement received without netboot6 info

Signed-off-by: hhuan13
Reviewed-by: tye1
Reviewed-by: qianouyang


git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12022 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
hhuan13 2011-07-18 08:28:30 +00:00
parent f2a74dae14
commit 42737ed919
1 changed files with 6 additions and 2 deletions

View File

@ -1,7 +1,7 @@
/** @file /** @file
Dhcp6 internal functions implementation. Dhcp6 internal functions implementation.
Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR> Copyright (c) 2009 - 2011, Intel Corporation. All rights reserved.<BR>
This program and the accompanying materials This program and the accompanying materials
are licensed and made available under the terms and conditions of the BSD License are licensed and made available under the terms and conditions of the BSD License
@ -2797,6 +2797,7 @@ Dhcp6OnTimerTick (
DHCP6_TX_CB *TxCb; DHCP6_TX_CB *TxCb;
DHCP6_IA_CB *IaCb; DHCP6_IA_CB *IaCb;
UINT32 LossTime; UINT32 LossTime;
EFI_STATUS Status;
ASSERT (Context != NULL); ASSERT (Context != NULL);
@ -2827,7 +2828,10 @@ Dhcp6OnTimerTick (
// //
// Select the advertisement received before. // Select the advertisement received before.
// //
Dhcp6SelectAdvertiseMsg (Instance, Instance->AdSelect); Status = Dhcp6SelectAdvertiseMsg (Instance, Instance->AdSelect);
if (EFI_ERROR (Status)) {
TxCb->RetryCnt++;
}
return; return;
} }
} }