diff options
author | 2002-02-05 17:03:11 +0000 | |
---|---|---|
committer | 2002-02-05 17:03:11 +0000 | |
commit | 64c11c6c4de121480ea0b49de55dbc01f8a516ef (patch) | |
tree | 9793085eb7dc95ce6073b1db52bfa04d81f783de /sys/netinet/tcp_output.c | |
parent | Add rlimit-file. (diff) | |
download | wireguard-openbsd-64c11c6c4de121480ea0b49de55dbc01f8a516ef.tar.xz wireguard-openbsd-64c11c6c4de121480ea0b49de55dbc01f8a516ef.zip |
when retransmitting a segment after FIN has been sent don't set FIN
unless we are transmitting the last of our data. report from
jishac@grc.nasa.gov; pr/2368
Diffstat (limited to 'sys/netinet/tcp_output.c')
-rw-r--r-- | sys/netinet/tcp_output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 25161e896cb..b46f70a499c 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -1,4 +1,4 @@ -/* $OpenBSD: tcp_output.c,v 1.46 2002/01/14 19:58:18 provos Exp $ */ +/* $OpenBSD: tcp_output.c,v 1.47 2002/02/05 17:03:11 provos Exp $ */ /* $NetBSD: tcp_output.c,v 1.16 1997/06/03 16:17:09 kml Exp $ */ /* @@ -383,7 +383,7 @@ again: len = tp->t_maxseg; sendalot = 1; } - if (SEQ_LT(tp->snd_nxt + len, tp->snd_una + so->so_snd.sb_cc)) + if (off + len < so->so_snd.sb_cc) flags &= ~TH_FIN; win = sbspace(&so->so_rcv); |