From 0fb361d8281b4b5cf919c7fbbd3b5f72f6403990 Mon Sep 17 00:00:00 2001 From: Jiaxin Wu Date: Thu, 17 Sep 2015 00:55:32 +0000 Subject: NetworkPkg: Fix connection issue after correct SPD and re-enable IPsec MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This patch is used to fix connection failure issue after correct the SPD and re-enable IPsec. The driver should not update the SadEntry's SpdSelector when doing SpdEntry modification. SadEntry's SpdSelector may not equal to this edited SpdEntry’s Selector. (Sync patch r18484 from main trunk.) Cc: Ye Ting Cc: Fu Siyuan Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiaxin Wu Reviewed-by: Ye Ting Reviewed-by: Fu Siyuan git-svn-id: https://svn.code.sf.net/p/edk2/code/branches/UDK2015@18487 6f19259b-4bc3-4df7-8a09-765794883524 --- NetworkPkg/IpSecDxe/IpSecConfigImpl.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'NetworkPkg') diff --git a/NetworkPkg/IpSecDxe/IpSecConfigImpl.c b/NetworkPkg/IpSecDxe/IpSecConfigImpl.c index 6aa47aabab..8c7724c7da 100644 --- a/NetworkPkg/IpSecDxe/IpSecConfigImpl.c +++ b/NetworkPkg/IpSecDxe/IpSecConfigImpl.c @@ -1204,12 +1204,7 @@ SetSpdEntry ( RemoveEntryList (&SadEntry->BySpd); } InsertTailList (&SpdEntry->Data->Sas, &SadEntry->BySpd); - SadEntry->Data->SpdEntry = SpdEntry; - DuplicateSpdSelector ( - (EFI_IPSEC_CONFIG_SELECTOR *)SadEntry->Data->SpdSelector, - (EFI_IPSEC_CONFIG_SELECTOR *)SpdEntry->Selector, - NULL - ); + SadEntry->Data->SpdEntry = SpdEntry; } } } -- cgit v1.2.3