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 <[email protected]>
Reviewed-by: Sriram Subramanian <[email protected]>
Reviewed-by: Fu Siyuan <[email protected]>
---
 NetworkPkg/HttpBootDxe/HttpBootDxe.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/NetworkPkg/HttpBootDxe/HttpBootDxe.c 
b/NetworkPkg/HttpBootDxe/HttpBootDxe.c
index a7fc8a8..9fb33bb 100644
--- a/NetworkPkg/HttpBootDxe/HttpBootDxe.c
+++ b/NetworkPkg/HttpBootDxe/HttpBootDxe.c
@@ -48,11 +48,10 @@ HttpBootDestroyIp4Children (
   IN HTTP_BOOT_PRIVATE_DATA       *Private
   )
 {
   ASSERT (This != NULL);
   ASSERT (Private != NULL);
-  ASSERT (Private->UsingIpv6 == FALSE);
 
   if (Private->Dhcp4Child != NULL) {
     gBS->CloseProtocol (
            Private->Dhcp4Child,
            &gEfiDhcp4ProtocolGuid,
@@ -109,11 +108,10 @@ HttpBootDestroyIp6Children (
   IN HTTP_BOOT_PRIVATE_DATA       *Private
   )
 {
   ASSERT (This != NULL);
   ASSERT (Private != NULL);
-  ASSERT (Private->UsingIpv6 == TRUE);
   
   if (Private->Ip6Child != NULL) {
     gBS->CloseProtocol (
            Private->Ip6Child,
            &gEfiIp6ProtocolGuid,
-- 
1.9.5.msysgit.1

_______________________________________________
edk2-devel mailing list
[email protected]
https://lists.01.org/mailman/listinfo/edk2-devel

Reply via email to