]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: log: use __send_log() with exact payload length
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 5 Mar 2025 11:52:17 +0000 (12:52 +0100)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 5 Mar 2025 14:38:46 +0000 (15:38 +0100)
commit9e9b110032b767969e50b48bf292741ff21c6436
tree240031ebade9c50cfb1f094c168dfa75fb07f33e
parent94a9b0f5deabd49020c8ff535a3404494345b399
MINOR: log: use __send_log() with exact payload length

Historically, __send_log() was called with terminating NULL byte after
the message payload. But now that __send_log() supports being called
without terminating NULL byte (thanks to size hint), and that __sendlog()
actually stips any \n or NULL byte, we don't need to bother with that
anymore. So let's remove extra logic around __send_log() users where we
added 1 extra byte for the terminating NULL byte.

No change of behavior should be expected.
src/log.c