mirror of https://github.com/acidanthera/audk.git
Initialize DefaultInfo before using it.
Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> Reviewed-by: Ouyang Qian <qian.ouyang@intel.com> git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@14168 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
44a97ac647
commit
f402291bf9
|
@ -837,6 +837,7 @@ EfiPxeBcDiscover (
|
|||
// If info isn't offered,
|
||||
// use the cached DhcpAck and ProxyOffer packets.
|
||||
//
|
||||
ZeroMem (&DefaultInfo, sizeof (EFI_PXE_BASE_CODE_DISCOVER_INFO));
|
||||
if (*Layer != EFI_PXE_BASE_CODE_BOOT_LAYER_INITIAL) {
|
||||
|
||||
if (!Mode->PxeDiscoverValid || !Mode->PxeReplyReceived || (!Mode->PxeBisReplyReceived && UseBis)) {
|
||||
|
|
|
@ -566,6 +566,7 @@ EfiPxeBcDiscover (
|
|||
//
|
||||
// There are 3 methods to get the information for discover.
|
||||
//
|
||||
ZeroMem (&DefaultInfo, sizeof (EFI_PXE_BASE_CODE_DISCOVER_INFO));
|
||||
if (*Layer != EFI_PXE_BASE_CODE_BOOT_LAYER_INITIAL) {
|
||||
//
|
||||
// 1. Take the previous setting as the discover info.
|
||||
|
|
Loading…
Reference in New Issue