summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authormycroft <mycroft@NetBSD.org>1998-09-19 04:02:52 +0000
committermycroft <mycroft@NetBSD.org>1998-09-19 04:02:52 +0000
commit31347e46713d6584ffdefbb4166ff25266df0dcc (patch)
tree0c7ec81cda704903957ef4ece4160142afba8cd9 /sys
parent19031a53091b158c3791fa45d41002ff0325b610 (diff)
Always send a 0 window with a RST. Suggested by Darren Reed.
Diffstat (limited to 'sys')
-rw-r--r--sys/netinet/tcp_subr.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sys/netinet/tcp_subr.c b/sys/netinet/tcp_subr.c
index 8d4d458ee49..17f38d076ea 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -1,4 +1,4 @@
-/* $NetBSD: tcp_subr.c,v 1.58 1998/09/04 22:29:54 mycroft Exp $ */
+/* $NetBSD: tcp_subr.c,v 1.59 1998/09/19 04:02:52 mycroft Exp $ */
/*-
* Copyright (c) 1997, 1998 The NetBSD Foundation, Inc.
@@ -214,7 +214,8 @@ tcp_respond(tp, ti, m, ack, seq, flags)
struct route *ro = 0;
if (tp) {
- win = sbspace(&tp->t_inpcb->inp_socket->so_rcv);
+ if ((flags & TH_RST) == 0)
+ win = sbspace(&tp->t_inpcb->inp_socket->so_rcv);
ro = &tp->t_inpcb->inp_route;
}
if (m == 0) {