From 6719dcabc31ac4459d6d21580f70e10fd2de85a8 Mon Sep 17 00:00:00 2001 From: Markus Friedl Date: Wed, 14 Apr 2004 20:46:51 +0000 Subject: syn_cache_get: send RST instead of RST+ACK in response to ACK; ok deraadt --- sys/netinet/tcp_input.c | 5 ++--- 1 file 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); -- cgit v1.2.3