summaryrefslogtreecommitdiff
path: root/NetworkPkg
diff options
context:
space:
mode:
authorFu Siyuan <siyuan.fu@intel.com>2015-09-15 05:44:16 +0000
committerhwu1225 <hwu1225@Edk2>2015-09-15 05:44:16 +0000
commit19af298bc451bef3661ccdc81dca1c8c6af93444 (patch)
tree3719e559fb4c208744e1556c152ab57e6ae1fcf0 /NetworkPkg
parent43b3c498bda4f1e2c96772d1e1af956cabae6cf5 (diff)
downloadedk2-platforms-19af298bc451bef3661ccdc81dca1c8c6af93444.tar.xz
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. (Sync patch r18453 from main trunk.) 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/branches/UDK2015@18463 6f19259b-4bc3-4df7-8a09-765794883524
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/HttpDxe/HttpImpl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/NetworkPkg/HttpDxe/HttpImpl.c b/NetworkPkg/HttpDxe/HttpImpl.c
index 2b62dc5db2..76c95b2bb6 100644
--- a/NetworkPkg/HttpDxe/HttpImpl.c
+++ b/NetworkPkg/HttpDxe/HttpImpl.c
@@ -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);