]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Correct the missed code in r18449.
authorFu Siyuan <siyuan.fu@intel.com>
Tue, 15 Sep 2015 00:59:37 +0000 (00:59 +0000)
committersfu5 <sfu5@Edk2>
Tue, 15 Sep 2015 00:59:37 +0000 (00:59 +0000)
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

NetworkPkg/HttpDxe/HttpImpl.c

index 2b62dc5db299f1ce1fe48b9ed43be5ccf67a31d8..76c95b2bb66a3be299c56a321770168493ec939e 100644 (file)
@@ -275,7 +275,6 @@ EfiHttpRequest (
     return EFI_ACCESS_DENIED;   \r
   }  \r
 \r
-  Url         = NULL;\r
   HostName    = NULL;\r
   Wrap        = NULL;\r
   HostNameStr = NULL;\r
@@ -284,6 +283,7 @@ EfiHttpRequest (
   //\r
   // Parse the URI of the remote host.\r
   //\r
+  Url = HttpInstance->Url;\r
   UrlLen = StrLen (Request->Url) + 1;\r
   if (UrlLen > HTTP_URL_BUFFER_LEN) {\r
     Url = AllocateZeroPool (UrlLen);\r