summaryrefslogtreecommitdiff
path: root/NetworkPkg
diff options
context:
space:
mode:
authorJiaxin Wu <jiaxin.wu@intel.com>2017-12-21 14:34:58 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2017-12-22 15:51:14 +0800
commit5e125e7752404968ab22e6039ff2d71cea4b01a8 (patch)
tree71702a878e3cff39ff34366137dd28b30fbfe213 /NetworkPkg
parent0dc5929645210604fc5a01bf8c160501cc4d9502 (diff)
downloadedk2-5e125e7752404968ab22e6039ff2d71cea4b01a8.zip
edk2-5e125e7752404968ab22e6039ff2d71cea4b01a8.tar.gz
edk2-5e125e7752404968ab22e6039ff2d71cea4b01a8.tar.bz2
NetworkPkg/HttpBootDxe: Break the HttpBoot Callback function when meet redirect status.
In HttpBootCallback(), when data type is HttpBootHttpResponse, function may meet the resource redirect error. In current implementation, function will still go ahead to find header for HTTP_HEADER_CONTENT_LENGTH, this is not expected. Function should break in redirect status error handling. Cc: Wang Fan <fan.wang@intel.com> Cc: Ye Ting <ting.ye@intel.com> Cc: Fu Siyuan <siyuan.fu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Wang Fan <fan.wang@intel.com>
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/HttpBootDxe/HttpBootImpl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/NetworkPkg/HttpBootDxe/HttpBootImpl.c b/NetworkPkg/HttpBootDxe/HttpBootImpl.c
index d4b46a6..16c1207 100644
--- a/NetworkPkg/HttpBootDxe/HttpBootImpl.c
+++ b/NetworkPkg/HttpBootDxe/HttpBootImpl.c
@@ -711,6 +711,7 @@ HttpBootCallback (
if (HttpHeader != NULL) {
Print (L"\n HTTP ERROR: Resource Redirected.\n New Location: %a\n", HttpHeader->FieldValue);
}
+ break;
}
}