mirror of https://github.com/acidanthera/audk.git
NetworkPkg: Correct the missed code in r18449.
The fix r18449 missed 1 line which will cause Http.Request() ASSERT. This patch will correct this error. Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Fu Siyuan <siyuan.fu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18453 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
a5382ce06c
commit
7ef0690f7c
|
@ -275,7 +275,6 @@ EfiHttpRequest (
|
|||
return EFI_ACCESS_DENIED;
|
||||
}
|
||||
|
||||
Url = NULL;
|
||||
HostName = NULL;
|
||||
Wrap = NULL;
|
||||
HostNameStr = NULL;
|
||||
|
@ -284,6 +283,7 @@ EfiHttpRequest (
|
|||
//
|
||||
// Parse the URI of the remote host.
|
||||
//
|
||||
Url = HttpInstance->Url;
|
||||
UrlLen = StrLen (Request->Url) + 1;
|
||||
if (UrlLen > HTTP_URL_BUFFER_LEN) {
|
||||
Url = AllocateZeroPool (UrlLen);
|
||||
|
|
Loading…
Reference in New Issue