]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: log: junk at the end of syslog packet
authorWilliam Lallemand <wlallemand@exceliance.fr>
Fri, 30 Aug 2013 12:17:46 +0000 (14:17 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 31 Aug 2013 06:02:09 +0000 (08:02 +0200)
commitafeb987c5c62a25def46fcbaeaa31ee4aec977f1
tree5951f442c5751ac6c33bf3cc133f551d72654f2a
parent5b7ea3afa18351b2243fac6e9131327ff9d71911
BUG/MINOR: log: junk at the end of syslog packet

With a facily of 2 or 1 digit, the send size was wrong and bytes with
unknown value were sent.
The size was calculated using the start of the buffer and not the start
of the data which varies with the number of digits of the facility.

This bug was reported by Samuel Stoller and reported by Lukas Tribus.
src/log.c