Fix tlsrec on range

This commit is contained in:
ruti 2024-12-06 11:33:47 +03:00
parent 1ed00ea6d9
commit fdb91ecf17

View File

@ -474,7 +474,7 @@ static ssize_t tamp(char *buffer, size_t bfsize, ssize_t n,
pos += gen_offset(part.pos, pos += gen_offset(part.pos,
part.flag, buffer, n - pos, lp, info); part.flag, buffer, n - pos, lp, info);
if (part.pos != pos) { if (part.pos < 0 || part.flag) {
pos -= 5; pos -= 5;
} }
pos += (long )part.s * (part.r - r); pos += (long )part.s * (part.r - r);