NetworkPkg: Fix connection issue after correct SPD and re-enable IPsec
[mirror_edk2.git] / NetworkPkg / IpSecDxe / IpSecConfigImpl.c
index 6aa47aababfe25313fd983d2c6f546dccb4fb083..8c7724c7da80f9f9633fc4349d74ffbcca7a2b35 100644 (file)
@@ -1204,12 +1204,7 @@ SetSpdEntry (
           RemoveEntryList (&SadEntry->BySpd);\r
         }\r
         InsertTailList (&SpdEntry->Data->Sas, &SadEntry->BySpd);\r
-        SadEntry->Data->SpdEntry = SpdEntry;\r
-        DuplicateSpdSelector (\r
-          (EFI_IPSEC_CONFIG_SELECTOR *)SadEntry->Data->SpdSelector,\r
-          (EFI_IPSEC_CONFIG_SELECTOR *)SpdEntry->Selector,\r
-          NULL\r
-          );             \r
+        SadEntry->Data->SpdEntry = SpdEntry;             \r
       }\r
     }\r
   }\r