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
This commit is contained in:
Matthew Dillon 2002-10-16 19:16:33 +00:00
parent f371d460e6
commit abac41a659
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=105291

View File

@ -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;
}