]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: fixing bug in tcp syslog_io_handler Octet-Counting
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 26 Oct 2022 21:40:08 +0000 (23:40 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 27 Oct 2022 09:28:53 +0000 (11:28 +0200)
commit7faffdc6abc662470a4706f6c5af7c9c3a8764fb
tree04ac33d3e92d0b02ced16763df7bd55bdedd5801
parentbbb1c68508ceebb98ac4234c906a65a42596e6ea
BUG/MINOR: log: fixing bug in tcp syslog_io_handler Octet-Counting

syslog_io_handler does specific treatment to handle syslog tcp octet
counting:

Logic was good, but a sneaky mistake prevented
rfc-6587 octet counting from working properly.

trash.area was used as an input buffer.
It does not make sense here since it is uninitialized.
Compilation was unaffected because trash is a thread
local "global" variable.

buf->area should definitely be used instead.

This should be backported as far as 2.4.
src/log.c