diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-05-12 18:00:30 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1997-05-12 18:00:30 +0000 |
commit | 0b8ad0d2afca377a7b4bcccb695c9c29684a4897 (patch) | |
tree | 625c3ee2cca8bfb90e68268b09891d32a6b5ee58 /sys | |
parent | 83078584675915a08d0f25d1b1d356295a9c1300 (diff) |
argh
Diffstat (limited to 'sys')
-rw-r--r-- | sys/netinet/tcp_input.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index ea37f2be8d5..6652a2f7ef6 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.9 1997/02/05 15:48:24 deraadt Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.10 1997/05/12 18:00:29 deraadt Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -271,8 +271,10 @@ tcpdropoldhalfopen(avoidtp, port) inp = inp->inp_queue.cqe_prev) { if ((tp = (struct tcpcb *)inp->inp_ppcb) && tp != avoidtp && - tp->t_state == TCPS_SYN_RECEIVED) - break; + tp->t_state == TCPS_SYN_RECEIVED) { + tcp_close(tp); + goto done; + } } done: splx(s); |