X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=MdeModulePkg%2FUniversal%2FNetwork%2FDhcp4Dxe%2FDhcp4Option.c;fp=MdeModulePkg%2FUniversal%2FNetwork%2FDhcp4Dxe%2FDhcp4Option.c;h=11b8978b400581dc6add2a2ff943e4eb99d81e8d;hp=e49e1e44f9fb5f728018ac4df7a8309f37ee48a0;hb=894d038a8d0e99d456042e2b6d1554c4a406ea70;hpb=f2a064736dcea55b602e0e74607cb9b5b9f4a730 diff --git a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c index e49e1e44f9..11b8978b40 100644 --- a/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c +++ b/MdeModulePkg/Universal/Network/Dhcp4Dxe/Dhcp4Option.c @@ -1,7 +1,7 @@ /** @file Function to validate, parse, process the DHCP options. -Copyright (c) 2006 - 2008, Intel Corporation.
+Copyright (c) 2006 - 2009, Intel Corporation.
All rights reserved. This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License which accompanies this distribution. The full text of the license may be found at @@ -668,8 +668,8 @@ DhcpValidateOptions ( } AllOption = NULL; - Status = DhcpParseOption (Packet, &Count, &AllOption); + Status = DhcpParseOption (Packet, &Count, &AllOption); if (EFI_ERROR (Status) || (Count == 0)) { return Status; } @@ -679,6 +679,7 @@ DhcpValidateOptions ( for (Index = 0; Index < Count; Index++) { Option = &AllOption[Index]; + ASSERT (Option != NULL); // // Find the format of the option then validate it.