]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg/HttpDxe: Handle the HttpVersionUnsupported in the HttpConfigData
authorJiaxin Wu <jiaxin.wu@intel.com>
Wed, 9 Aug 2017 02:30:20 +0000 (10:30 +0800)
committerJiaxin Wu <jiaxin.wu@intel.com>
Mon, 14 Aug 2017 00:43:16 +0000 (08:43 +0800)
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>
NetworkPkg/HttpDxe/HttpImpl.c

index e0fecac3d56afb95ac5dc2c473bbc98b2b8ee26e..c104b614f35a04c5794ec49ca2a6ea73b4888a29 100644 (file)
@@ -151,6 +151,10 @@ EfiHttpConfigure (
 \r
   if (HttpConfigData != NULL) {\r
 \r
+    if (HttpConfigData->HttpVersion >= HttpVersionUnsupported) {\r
+      return EFI_UNSUPPORTED;\r
+    }\r
+\r
     //\r
     // Now configure this HTTP instance.\r
     //\r