@param[out] OptionPoint The array that contains the DHCP options. Caller\r
should free it.\r
\r
+ @retval EFI_NOT_FOUND Cannot find any option.\r
@retval EFI_OUT_OF_RESOURCES Failed to allocate memory to parse the packet.\r
@retval EFI_INVALID_PARAMETER The options are mal-formated\r
@retval EFI_SUCCESS The options are parsed into OptionPoint\r
*OptionPoint = NULL;\r
\r
if (OptNum == 0) {\r
+ Status = EFI_NOT_FOUND;\r
goto ON_EXIT;\r
}\r
\r
if (EFI_ERROR (Status) || (Count == 0)) {\r
return Status;\r
}\r
-\r
+ \r
Updated = FALSE;\r
ZeroMem (&Parameter, sizeof (Parameter));\r
\r
for (Index = 0; Index < Count; Index++) {\r
Option = &AllOption[Index];\r
- ASSERT (Option != NULL);\r
\r
//\r
// Find the format of the option then validate it.\r