diff options
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c index 1942f6b..1e96129 100644 --- a/sys/netinet/tcp_usrreq.c +++ b/sys/netinet/tcp_usrreq.c @@ -162,9 +162,9 @@ tcp_usr_detach(struct socket *so) INP_INFO_WLOCK(&tcbinfo); inp = sotoinpcb(so); - if (inp == 0) { + if (inp == NULL) { INP_INFO_WUNLOCK(&tcbinfo); - return EINVAL; /* XXX */ + return error; } INP_LOCK(inp); tp = intotcpcb(inp); |