1. Refine the error handling for PXE-v4 driver.
Signed-off-by: hhuan13 Reviewed-by: xdu2, tye git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@12191 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
@@ -565,7 +565,9 @@ PxeBcCacheDhcpOffer (
|
||||
}
|
||||
|
||||
OfferType = CachedOffer->OfferType;
|
||||
ASSERT (OfferType < DHCP4_PACKET_TYPE_MAX);
|
||||
if (OfferType >= DHCP4_PACKET_TYPE_MAX) {
|
||||
return ;
|
||||
}
|
||||
|
||||
if (OfferType == DHCP4_PACKET_TYPE_BOOTP) {
|
||||
|
||||
|
Reference in New Issue
Block a user