From 5dd08a463d5ca40b2ee3a8a0639c846e68265b92 Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Fri, 14 Aug 2015 07:41:51 +0000 Subject: NetworkPkg: Fix hang issue after system reconnected when IPSec has set up IpSecStop() is incompetent to send out the delete information since the underlying IP child has been destroyed. Delete all established IKE SAs and related Child SAs directly. Cc: Ye Ting Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu Reviewed-by: Ye Ting git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@18223 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/IpSecDxe/Ikev2/Exchange.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'NetworkPkg/IpSecDxe/Ikev2/Exchange.c') diff --git a/NetworkPkg/IpSecDxe/Ikev2/Exchange.c b/NetworkPkg/IpSecDxe/Ikev2/Exchange.c index 37f9667d3d..9d58ab0a46 100644 --- a/NetworkPkg/IpSecDxe/Ikev2/Exchange.c +++ b/NetworkPkg/IpSecDxe/Ikev2/Exchange.c @@ -1,7 +1,7 @@ /** @file The general interfaces of the IKEv2. - Copyright (c) 2010 - 2014, Intel Corporation. All rights reserved.
+ Copyright (c) 2010 - 2015, Intel Corporation. All rights reserved.
This program and the accompanying materials are licensed and made available under the terms and conditions of the BSD License @@ -330,7 +330,7 @@ Ikev2NegotiateInfo ( // // Send out the Packet // - if (UdpService != NULL) { + if (UdpService != NULL && UdpService->Output != NULL) { Status = Ikev2SendIkePacket (UdpService, (UINT8 *) SaCommon, IkePacket, 0); if (EFI_ERROR (Status)) { @@ -357,7 +357,7 @@ Ikev2NegotiateInfo ( // // Send out the Packet // - if (UdpService != NULL) { + if (UdpService != NULL && UdpService->Output != NULL) { Status = Ikev2SendIkePacket (UdpService, (UINT8 *) &ChildSaSession->SessionCommon, IkePacket, 0); if (EFI_ERROR (Status)) { -- cgit v1.2.3