In io_write_buf() adjust the calculation of the multiplex message size
authorclaudio <claudio@openbsd.org>
Tue, 28 Dec 2021 11:59:48 +0000 (11:59 +0000)
committerclaudio <claudio@openbsd.org>
Tue, 28 Dec 2021 11:59:48 +0000 (11:59 +0000)
commitc91bd41216ce259530f7d5537bd4cbcc58894b62
treeb0667c8da9069c8c3945e5b5b84e87202a1aa36f
parent8bad472766c281984fc204a3ce5831d1fc18cdca
In io_write_buf() adjust the calculation of the multiplex message size
so that the loop works even for buffers bigger than 0xffffff. The code
does not produce such big buffers but better make the code correct.
Reported by Blago Dachev (blago (at) dachev (dot) com)
OK benno@
usr.bin/rsync/io.c