diff options
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index ccdc807..653ab6c 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -1211,6 +1211,8 @@ tcp_attach(so) int nofd = so->so_state & SS_NOFDREF; /* XXX */ so->so_state &= ~SS_NOFDREF; /* don't free the socket yet */ + + INP_LOCK(inp); #ifdef INET6 if (isipv6) in6_pcbdetach(inp); |