mirror of https://github.com/acidanthera/audk.git
NetworkPkg: Fix a bug in HttpBootDriverBindingStop() when destroying child.
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
This commit is contained in:
parent
ec613395d1
commit
81438fe8d0
|
@ -50,7 +50,6 @@ HttpBootDestroyIp4Children (
|
|||
{
|
||||
ASSERT (This != NULL);
|
||||
ASSERT (Private != NULL);
|
||||
ASSERT (Private->UsingIpv6 == FALSE);
|
||||
|
||||
if (Private->Dhcp4Child != NULL) {
|
||||
gBS->CloseProtocol (
|
||||
|
@ -111,7 +110,6 @@ HttpBootDestroyIp6Children (
|
|||
{
|
||||
ASSERT (This != NULL);
|
||||
ASSERT (Private != NULL);
|
||||
ASSERT (Private->UsingIpv6 == TRUE);
|
||||
|
||||
if (Private->Ip6Child != NULL) {
|
||||
gBS->CloseProtocol (
|
||||
|
|
Loading…
Reference in New Issue