diff options
author | Fu Siyuan <siyuan.fu@intel.com> | 2015-09-15 00:59:37 +0000 |
---|---|---|
committer | sfu5 <sfu5@Edk2> | 2015-09-15 00:59:37 +0000 |
commit | 7ef0690f7c116e8760b5556e8c91d5902deee255 (patch) | |
tree | f1f359b48d4d594d01d61f8f1b9b4e8188be89cf /NetworkPkg/HttpDxe | |
parent | a5382ce06cb11382b94025ba27391b0e314237c7 (diff) | |
download | edk2-platforms-7ef0690f7c116e8760b5556e8c91d5902deee255.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.
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
Diffstat (limited to 'NetworkPkg/HttpDxe')
-rw-r--r-- | NetworkPkg/HttpDxe/HttpImpl.c | 2 |
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);
|