summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2004-07-26 21:29:56 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2004-07-26 21:29:56 +0000
commit0aa8ce5012b1efda43ae6bba078ca6a70e46673c (patch)
tree73fb08353b5039cd99fa662fac78b0642fe1fa3b /sys/netinet/tcp_usrreq.c
parentb5e60d32882fd6c7cf68505d0e3de17c28977723 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 1942f6bba8d1..1e961291e9fc 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);