summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-14 05:49:42 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1997-06-14 05:49:42 +0000
commit88bafc3f843624b61da705bdbdd087385046397d (patch)
tree75b7b586e416489028db5f4ce9308775dbd831da /sys
parent855b7c4a53cbd205d5005b6a44bf3a57eb68e764 (diff)
TCP/IP Illustrated Vol. 2, pg 1010. excessive testing in PRU_DETACH case;
frueauf@ira.uka.de; confirmed by Andreas.Gunnarsson@emw.ericsson.se
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_usrreq.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sys/netinet/tcp_usrreq.c b/sys/netinet/tcp_usrreq.c
index 1812cdb9280..44451215edc 100644
--- a/sys/netinet/tcp_usrreq.c
+++ b/sys/netinet/tcp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tcp_usrreq.c,v 1.9 1997/06/06 11:22:18 deraadt Exp $ */
+/* $OpenBSD: tcp_usrreq.c,v 1.10 1997/06/14 05:49:41 deraadt Exp $ */
/* $NetBSD: tcp_usrreq.c,v 1.20 1996/02/13 23:44:16 christos Exp $ */
/*
@@ -156,10 +156,7 @@ tcp_usrreq(so, req, m, nam, control)
* be discarded here.
*/
case PRU_DETACH:
- if (tp->t_state > TCPS_LISTEN)
- tp = tcp_disconnect(tp);
- else
- tp = tcp_close(tp);
+ tp = tcp_disconnect(tp);
break;
/*