summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_timewait.c
diff options
context:
space:
mode:
authorJeffrey Hsu <hsu@FreeBSD.org>2002-12-24 21:00:31 +0000
committerJeffrey Hsu <hsu@FreeBSD.org>2002-12-24 21:00:31 +0000
commitabe239cfe2512c8652a11e7ee53a8cc75be57d01 (patch)
tree66f5a3c92b8353f9df0e551a9cfdf2bb7d046259 /sys/netinet/tcp_timewait.c
parent79191eca57a3220ade85d3eab3fb7f6c69bc5be5 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_timewait.c')
-rw-r--r--sys/netinet/tcp_timewait.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/netinet/tcp_timewait.c b/sys/netinet/tcp_timewait.c
index 845df42b6fd4..46e32d9e684d 100644
--- a/sys/netinet/tcp_timewait.c
+++ b/sys/netinet/tcp_timewait.c
@@ -771,6 +771,7 @@ tcp_close(tp)
FREE(q, M_TSEGQ);
}
inp->inp_ppcb = NULL;
+ tp->t_inpcb = NULL;
soisdisconnected(so);
#ifdef INET6
if (INP_CHECK_SOCKAF(so, AF_INET6))
@@ -1427,7 +1428,7 @@ tcp_mtudisc(inp, errno)
/*
* Look-up the routing entry to the peer of this inpcb. If no route
- * is found and it cannot be allocated the return NULL. This routine
+ * is found and it cannot be allocated, then return NULL. This routine
* is called by TCP routines that access the rmx structure and by tcp_mss
* to get the interface MTU.
*/