]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: quic: Possible unexpected counter incrementation on send*() errors
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 9 Feb 2023 19:37:26 +0000 (20:37 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 17 Feb 2023 16:36:30 +0000 (17:36 +0100)
commit9fc10aff05462fe88bc117cda20d381dfb2ea9f7
tree4f6ba771d26455f75da1e8638c2c31f68e1e88d3
parent14037bf26f23a8deb6c11da0c917e838758cb01b
BUG/MINOR: quic: Possible unexpected counter incrementation on send*() errors

Some counters could potentially be incremented even if send*() syscall returned
no error when ret >= 0 and ret != sz. This could be the case for instance if
a first call to send*() returned -1 with errno set to EINTR (or any previous syscall
which set errno to a non-null value) and if the next call to send*() returned
something positive and smaller than <sz>.

Must be backported to 2.7 and 2.6.
src/quic_sock.c