From: Guo-Fu Tseng <[email protected]>
Signed-off-by: Guo-Fu Tseng <[email protected]> --- src/net/tcp.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/src/net/tcp.c b/src/net/tcp.c index 230dce0..3e6543c 100644 --- a/src/net/tcp.c +++ b/src/net/tcp.c @@ -356,6 +356,9 @@ static void tcp_close ( struct tcp_connection *tcp ) { * Closes the data transfer interface. */ static void tcp_xfer_shutdown ( struct tcp_connection *tcp, int rc ) { + if ( tcp->flags & TCP_XFER_CLOSED ) + return; + /* Close data transfer interface */ xfer_nullify ( &tcp->xfer ); xfer_close ( &tcp->xfer, rc ); -- 1.7.1 _______________________________________________ gPXE-devel mailing list [email protected] http://etherboot.org/mailman/listinfo/gpxe-devel
