summaryrefslogtreecommitdiff
path: root/sys/netinet
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2004-04-14 20:46:51 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2004-04-14 20:46:51 +0000
commit6719dcabc31ac4459d6d21580f70e10fd2de85a8 (patch)
treee31067e57aee765c3492b5545840d99a5a2b01cd /sys/netinet
parent69a340f9998276bdee4a343d218b94046a7c79df (diff)
syn_cache_get: send RST instead of RST+ACK in response to ACK; ok deraadt
Diffstat (limited to 'sys/netinet')
-rw-r--r--sys/netinet/tcp_input.c5
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);