summaryrefslogtreecommitdiffstats
path: root/NetworkPkg
diff options
context:
space:
mode:
authorJiaxin Wu <jiaxin.wu@intel.com>2017-08-09 10:30:20 +0800
committerJiaxin Wu <jiaxin.wu@intel.com>2017-08-14 08:43:16 +0800
commit79de8c79cdef26e5578050b7f1a206745c6cff14 (patch)
treec952fb10fcae5effcb6c984b7b2994c44ab7800c /NetworkPkg
parent0795920568ca2efbea71be8510f6bda1e8ef3e8a (diff)
downloadedk2-79de8c79cdef26e5578050b7f1a206745c6cff14.tar.gz
edk2-79de8c79cdef26e5578050b7f1a206745c6cff14.tar.bz2
edk2-79de8c79cdef26e5578050b7f1a206745c6cff14.zip
NetworkPkg/HttpDxe: Handle the HttpVersionUnsupported in the HttpConfigData
v2: * Refine the patch by changing the '==' to '>='. Cc: Ye Ting <ting.ye@intel.com> Cc: Jin Eric <eric.jin@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Wu Jiaxin <jiaxin.wu@intel.com> Reviewed-by: Ye Ting <ting.ye@intel.com>
Diffstat (limited to 'NetworkPkg')
-rw-r--r--NetworkPkg/HttpDxe/HttpImpl.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/NetworkPkg/HttpDxe/HttpImpl.c b/NetworkPkg/HttpDxe/HttpImpl.c
index e0fecac3d5..c104b614f3 100644
--- a/NetworkPkg/HttpDxe/HttpImpl.c
+++ b/NetworkPkg/HttpDxe/HttpImpl.c
@@ -151,6 +151,10 @@ EfiHttpConfigure (
if (HttpConfigData != NULL) {
+ if (HttpConfigData->HttpVersion >= HttpVersionUnsupported) {
+ return EFI_UNSUPPORTED;
+ }
+
//
// Now configure this HTTP instance.
//