git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@9898
6f19259b-4bc3-4df7-8a09-
765794883524
goto Exit;\r
}\r
\r
+ //\r
+ // If input string doesn't indicate the prefix length, return 0xff.\r
+ //\r
+ Length = 0xFF;\r
+ \r
//\r
// Convert the string to prefix length\r
//\r
- Length = 0;\r
if (PrefixStr != NULL) {\r
\r
Status = EFI_INVALID_PARAMETER;\r
-\r
+ Length = 0;\r
while (*PrefixStr != '\0') {\r
if (NET_IS_DIGIT (*PrefixStr)) {\r
Length = (UINT8) (Length * 10 + (*PrefixStr - '0'));\r