From 7ef0690f7c116e8760b5556e8c91d5902deee255 Mon Sep 17 00:00:00 2001 From: Fu Siyuan Date: Tue, 15 Sep 2015 00:59:37 +0000 Subject: [PATCH] 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 Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18453 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/HttpDxe/HttpImpl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.39.2