summaryrefslogtreecommitdiffstats
path: root/sys/netinet/tcp_usrreq.c
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2007-06-15 22:54:11 +0000
committermjacob <mjacob@FreeBSD.org>2007-06-15 22:54:11 +0000
commit76b267f01e82515b2bb026ddf712efe61dc01db7 (patch)
tree7e5adc9d4982d8b06d54fc429501625b43ae50aa /sys/netinet/tcp_usrreq.c
parent3a2d39f8a2c5a1506f00bdd70936c4bce749b9f5 (diff)
downloadFreeBSD-src-76b267f01e82515b2bb026ddf712efe61dc01db7.zip
FreeBSD-src-76b267f01e82515b2bb026ddf712efe61dc01db7.tar.gz
Garbage collect some debug code that not only no longer could
work but in fact probably causes a random pointer dereferences. Garbage collect the tp variable too.
Diffstat (limited to 'sys/netinet/tcp_usrreq.c')
-rw-r--r--sys/netinet/tcp_usrreq.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 98bc313..91c56be 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -248,8 +248,6 @@ static void
tcp_usr_detach(struct socket *so)
{
struct inpcb *inp;
- struct tcpcb *tp;
- TCPDEBUG0;
inp = sotoinpcb(so);
KASSERT(inp != NULL, ("tcp_usr_detach: inp == NULL"));
@@ -257,11 +255,7 @@ tcp_usr_detach(struct socket *so)
INP_LOCK(inp);
KASSERT(inp->inp_socket != NULL,
("tcp_usr_detach: inp_socket == NULL"));
- TCPDEBUG1();
-
tcp_detach(so, inp);
- tp = NULL;
- TCPDEBUG2(PRU_DETACH);
INP_INFO_WUNLOCK(&tcbinfo);
}
OpenPOWER on IntegriCloud