* [PATCH 1/2] NetworkPkg:UEFIPXEBC
@ 2021-12-30 8:51 Sivaraman Nainar
0 siblings, 0 replies; only message in thread
From: Sivaraman Nainar @ 2021-12-30 8:51 UTC (permalink / raw)
To: devel; +Cc: sivaramann
From: "INDIA\\sivaramann" <sivaramann@ami.com>
Issue on the PxeBcDhcp4CallBack() functions of UEFIPXEBC Driver.
In this function any non allowed events are recieved as input it
will exit in beginning itself. But the switch case handling the
default and Dhcp4SendRequest which is not reachable.
Signed-off-by: Sivaraman <sivaramann@ami.com>
---
NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c | 12 ++----------
1 file changed, 2 insertions(+), 10 deletions(-)
diff --git a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
index fb63cf61a9..e85176f9bb 100644
--- a/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
+++ b/NetworkPkg/UefiPxeBcDxe/PxeBcDhcp4.c
@@ -1256,19 +1256,10 @@ PxeBcDhcp4CallBack (
//
// Cache the DHCPv4 discover packet to mode data directly.
- // It need to check SendGuid as well as Dhcp4SendRequest.
+ // It need to check SendGuid.
//
CopyMem (&Mode->DhcpDiscover.Dhcpv4, &Packet->Dhcp4, Packet->Length);
- case Dhcp4SendRequest:
- if (Packet->Length > PXEBC_DHCP4_PACKET_MAX_SIZE) {
- //
- // If the to be sent packet exceeds the maximum length, abort the DHCP process.
- //
- Status = EFI_ABORTED;
- break;
- }
-
if (Mode->SendGUID) {
//
// Send the system Guid instead of the MAC address as the hardware address if required.
@@ -1332,6 +1323,7 @@ PxeBcDhcp4CallBack (
break;
default:
+ ASSERT (FALSE);
break;
}
--
2.28.0.windows.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2021-12-30 8:51 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2021-12-30 8:51 [PATCH 1/2] NetworkPkg:UEFIPXEBC Sivaraman Nainar
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox