diff options
author | 1997-06-14 05:49:41 +0000 | |
---|---|---|
committer | 1997-06-14 05:49:41 +0000 | |
commit | 9ca11bbccbb31f0c06ae47a018b966e1c37baf56 (patch) | |
tree | 9c86ec8283e4fad243184eaccd1a9bf100da8e98 | |
parent | bad NULL; arnej@math.ntnu.no (diff) | |
download | wireguard-openbsd-9ca11bbccbb31f0c06ae47a018b966e1c37baf56.tar.xz wireguard-openbsd-9ca11bbccbb31f0c06ae47a018b966e1c37baf56.zip |
TCP/IP Illustrated Vol. 2, pg 1010. excessive testing in PRU_DETACH case;
frueauf@ira.uka.de; confirmed by Andreas.Gunnarsson@emw.ericsson.se
-rw-r--r-- | sys/netinet/tcp_usrreq.c | 7 |
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; /* |