diff options
author | dillon <dillon@FreeBSD.org> | 2002-10-16 19:16:33 +0000 |
---|---|---|
committer | dillon <dillon@FreeBSD.org> | 2002-10-16 19:16:33 +0000 |
commit | 12d5a1b9ff26477521c7a00578228c90d54d9ae1 (patch) | |
tree | a84a2788ab306d26ab137a618d6f0d87d5a71053 /sys/netinet | |
parent | 68c67aa0ed21d23f69e65960d0e62f25bbb71ef3 (diff) | |
download | FreeBSD-src-12d5a1b9ff26477521c7a00578228c90d54d9ae1.zip FreeBSD-src-12d5a1b9ff26477521c7a00578228c90d54d9ae1.tar.gz |
Fix oops in my last commit, I was calculating a new length but then not
using it. (The code is already correct in -stable).
Found by: silby
Diffstat (limited to 'sys/netinet')
-rw-r--r-- | sys/netinet/tcp_output.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/netinet/tcp_output.c b/sys/netinet/tcp_output.c index 1200282..1742477 100644 --- a/sys/netinet/tcp_output.c +++ b/sys/netinet/tcp_output.c @@ -844,7 +844,7 @@ send: ++xlen; tp->t_flags |= TF_SENTFIN; } - if (SEQ_GT(tp->snd_nxt + len, tp->snd_max)) + if (SEQ_GT(tp->snd_nxt + xlen, tp->snd_max)) tp->snd_max = tp->snd_nxt + len; } |