diff options
Diffstat (limited to 'slirp/tcp_input.c')
-rw-r--r-- | slirp/tcp_input.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/slirp/tcp_input.c b/slirp/tcp_input.c index ab0840d8dd..8789303c8b 100644 --- a/slirp/tcp_input.c +++ b/slirp/tcp_input.c @@ -1038,7 +1038,8 @@ trimthenstep6: soisfconnected(so); so->so_state &= ~SS_CTL; /* success XXX */ } else if (ret == 2) { - so->so_state = SS_NOFDREF; /* CTL_CMD */ + so->so_state &= SS_PERSISTENT_MASK; + so->so_state |= SS_NOFDREF; /* CTL_CMD */ } else { needoutput = 1; tp->t_state = TCPS_FIN_WAIT_1; |