diff options
author | 2004-04-14 20:46:50 +0000 | |
---|---|---|
committer | 2004-04-14 20:46:50 +0000 | |
commit | d5b7484b4af6b00c38c26713400c8e700fb80266 (patch) | |
tree | e072da72ae62acca6b87029fbc87d71636db9767 /sys/netinet/tcp_input.c | |
parent | enable all USB devices for which we have support in the tree; ok deraadt@ (diff) | |
download | wireguard-openbsd-d5b7484b4af6b00c38c26713400c8e700fb80266.tar.xz wireguard-openbsd-d5b7484b4af6b00c38c26713400c8e700fb80266.zip |
syn_cache_get: send RST instead of RST+ACK in response to ACK; ok deraadt
Diffstat (limited to 'sys/netinet/tcp_input.c')
-rw-r--r-- | sys/netinet/tcp_input.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/tcp_input.c b/sys/netinet/tcp_input.c index a3fed0250a1..016e197c221 100644 --- a/sys/netinet/tcp_input.c +++ b/sys/netinet/tcp_input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_input.c,v 1.160 2004/04/12 14:17:55 markus Exp $ */ +/* $OpenBSD: tcp_input.c,v 1.161 2004/04/14 20:46:50 markus Exp $ */ /* $NetBSD: tcp_input.c,v 1.23 1996/02/13 23:43:44 christos Exp $ */ /* @@ -3877,8 +3877,7 @@ syn_cache_get(src, dst, th, hlen, tlen, so, m) return (so); resetandabort: - (void) tcp_respond(NULL, mtod(m, caddr_t), m, - th->th_seq + tlen, (tcp_seq)0, TH_RST|TH_ACK); + tcp_respond(NULL, mtod(m, caddr_t), m, (tcp_seq)0, th->th_ack, TH_RST); abort: if (so != NULL) (void) soabort(so); |