]> git.proxmox.com Git - mirror_edk2.git/blobdiff - MdeModulePkg/Universal/Network/Ip4Dxe/Ip4Input.c
Fixed Ip4 bug that causing Iscsi reconnect hang sporadically . In Ip4OutPut()->Ip4IpS...
[mirror_edk2.git] / MdeModulePkg / Universal / Network / Ip4Dxe / Ip4Input.c
index d888e18e4cc7d6b8cc83b12d9a28afa092bec47e..75333b82efa6c521e5e8d93bb4cac4eba70ac525 100644 (file)
@@ -510,20 +510,11 @@ Ip4IpSecProcessPacket (
   \r
   if (mIpSec == NULL) {\r
     gBS->LocateProtocol (&gEfiIpSecProtocolGuid, NULL, (VOID **) &mIpSec);\r
-    if (mIpSec != NULL) {\r
-      //\r
-      // Save the original MTU\r
-      //\r
-      IpSb->OldMaxPacketSize = IpSb->MaxPacketSize; \r
+    if (mIpSec == NULL) {\r
+      goto ON_EXIT;\r
     }\r
   }\r
 \r
-  //\r
-  // Check whether the IPsec protocol is available.\r
-  //\r
-  if (mIpSec == NULL) {\r
-    goto ON_EXIT;\r
-  }\r
   //\r
   // Check whether the IPsec enable variable is set.\r
   //\r