]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/HttpDxe/HttpImpl.c
NetworkPkg: Correct the missed code in r18449.
[mirror_edk2.git] / 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