diff --git a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c index 500b3c72b3..49fa80ba8c 100644 --- a/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c +++ b/MdeModulePkg/Library/DxeHttpLib/DxeHttpLib.c @@ -189,7 +189,7 @@ NetHttpParseAuthorityChar ( *IsRightBracket = TRUE; } - if (Char == ':' && *IsRightBracket == TRUE) { + if (Char == ':' && *IsRightBracket) { return UrlParserPortStart; } return UrlParserHostIpv6;