]> git.proxmox.com Git - mirror_edk2.git/blobdiff - NetworkPkg/TcpDxe/TcpIo.c
Fix issue that TCP server will not response to SYN packet from TCP client in TCP6...
[mirror_edk2.git] / NetworkPkg / TcpDxe / TcpIo.c
index cecb6d19c52ceaa9e524c35ed9fc4ccc354e8a9a..2b99927ec54dca55de21844126dd1ee8c308b86a 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Implementation of I/O interfaces between TCP and IpIoLib.\r
 \r
-  Copyright (c) 2009 - 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2009 - 2012, Intel Corporation. All rights reserved.<BR>\r
 \r
   This program and the accompanying materials\r
   are licensed and made available under the terms and conditions of the BSD License\r
@@ -112,7 +112,9 @@ TcpSendIpPacket (
       // It's IPv6 and this TCP segment belongs to a solid TCB, in such case\r
       // the destination address can't be overridden, so reset the Dest to NULL.\r
       //\r
-      Dest = NULL;\r
+      if (!Tcb->RemoteIpZero) {\r
+        Dest = NULL;\r
+      }\r
     }\r
   }\r
 \r