summaryrefslogtreecommitdiff
path: root/sys/netinet/tcp_subr.c
diff options
context:
space:
mode:
authorGuido van Rooij <guido@FreeBSD.org>1998-11-15 21:35:09 +0000
committerGuido van Rooij <guido@FreeBSD.org>1998-11-15 21:35:09 +0000
commitd285db559859eea4c0198d417561510309cd2c17 (patch)
treedb4a36c128491adae9fcf58025915a7509454d94 /sys/netinet/tcp_subr.c
parentad6d02135b17373f0e6a19a3c54f0a1e4764f099 (diff)
Notes
Diffstat (limited to 'sys/netinet/tcp_subr.c')
-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 c1c29e4524f8..d84498631ad5 100644
--- a/sys/netinet/tcp_subr.c
+++ b/sys/netinet/tcp_subr.c
@@ -31,7 +31,7 @@
* SUCH DAMAGE.
*
* @(#)tcp_subr.c 8.2 (Berkeley) 5/24/95
- * $Id: tcp_subr.c,v 1.46 1998/08/24 07:47:39 dfr Exp $
+ * $Id: tcp_subr.c,v 1.47 1998/09/06 08:17:35 phk Exp $
*/
#include "opt_compat.h"
@@ -209,7 +209,8 @@ tcp_respond(tp, ti, m, ack, seq, flags)
struct route sro;
if (tp) {
- win = sbspace(&tp->t_inpcb->inp_socket->so_rcv);
+ if (!(flags & TH_RST))
+ win = sbspace(&tp->t_inpcb->inp_socket->so_rcv);
ro = &tp->t_inpcb->inp_route;
} else {
ro = &sro;