]> git.proxmox.com Git - mirror_edk2.git/commitdiff
NetworkPkg: Fix a bug in HttpBootDriverBindingStop() when destroying child.
authorZhang Lubo <lubo.zhang@intel.com>
Mon, 30 Nov 2015 01:41:50 +0000 (01:41 +0000)
committerluobozhang <luobozhang@Edk2>
Mon, 30 Nov 2015 01:41:50 +0000 (01:41 +0000)
If Http Driver is being unloaded or DisconnectController() without
invoke HttpBootStart(), this will cause an unexpected ASSERT.

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Zhang Lubo <lubo.zhang@intel.com>
Reviewed-by: Sriram Subramanian <sriram-s@hpe.com>
Reviewed-by: Fu Siyuan <siyuan.fu@intel.com>
git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@19005 6f19259b-4bc3-4df7-8a09-765794883524

NetworkPkg/HttpBootDxe/HttpBootDxe.c

index a7fc8a8e2e634505f82035d43c47b21ec3e4d8bd..9fb33bbb53abf20e874f4ea240543577ab2870d1 100644 (file)
@@ -50,7 +50,6 @@ HttpBootDestroyIp4Children (
 {\r
   ASSERT (This != NULL);\r
   ASSERT (Private != NULL);\r
-  ASSERT (Private->UsingIpv6 == FALSE);\r
 \r
   if (Private->Dhcp4Child != NULL) {\r
     gBS->CloseProtocol (\r
@@ -111,7 +110,6 @@ HttpBootDestroyIp6Children (
 {\r
   ASSERT (This != NULL);\r
   ASSERT (Private != NULL);\r
-  ASSERT (Private->UsingIpv6 == TRUE);\r
   \r
   if (Private->Ip6Child != NULL) {\r
     gBS->CloseProtocol (\r