X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=MdeModulePkg%2FLibrary%2FDxeHttpLib%2FDxeHttpLib.c;fp=MdeModulePkg%2FLibrary%2FDxeHttpLib%2FDxeHttpLib.c;h=edb2acbd069769bf74842be2dd0ec08dd8753fc9;hb=4a6f440f259d0fc12b49c49c48b93ad1198cbb86;hp=e53dce5e1bcbadf9917e448bcaab9b2471dece9c;hpb=0efeec8e20e9bf13e5c82622f536df0c13abe331;p=mirror_edk2.git diff --git a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c index e53dce5e1b..edb2acbd06 100644 --- a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c +++ b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c @@ -155,7 +155,7 @@ NetHttpParseAuthorityChar ( @param[in, out] UrlParser Pointer to the buffer of the parse result. @retval EFI_SUCCESS Successfully parse the authority. - @retval Other Error happened. + @retval EFI_INVALID_PARAMETER The Url is invalid to parse the authority component. **/ EFI_STATUS @@ -572,7 +572,7 @@ HttpUrlGetIp4 ( Parser = (HTTP_URL_PARSER*) UrlParser; if ((Parser->FieldBitMap & BIT (HTTP_URI_FIELD_HOST)) == 0) { - return EFI_INVALID_PARAMETER; + return EFI_NOT_FOUND; } Ip4String = AllocatePool (Parser->FieldData[HTTP_URI_FIELD_HOST].Length + 1); @@ -635,7 +635,7 @@ HttpUrlGetIp6 ( Parser = (HTTP_URL_PARSER*) UrlParser; if ((Parser->FieldBitMap & BIT (HTTP_URI_FIELD_HOST)) == 0) { - return EFI_INVALID_PARAMETER; + return EFI_NOT_FOUND; } // @@ -714,7 +714,7 @@ HttpUrlGetPort ( Parser = (HTTP_URL_PARSER*) UrlParser; if ((Parser->FieldBitMap & BIT (HTTP_URI_FIELD_PORT)) == 0) { - return EFI_INVALID_PARAMETER; + return EFI_NOT_FOUND; } PortString = AllocatePool (Parser->FieldData[HTTP_URI_FIELD_PORT].Length + 1); @@ -1133,7 +1133,8 @@ HttpInitMsgParser ( @retval EFI_SUCCESS Successfully parse the message-body. @retval EFI_INVALID_PARAMETER MsgParser is NULL or Body is NULL or BodyLength is 0. - @retval Others Operation aborted. + @retval EFI_ABORTED Operation aborted. + @retval Other Error happened while parsing message body. **/ EFI_STATUS