]> git.kaiwu.me - haproxy.git/commit
BUG: fix httplog trailing LF
authorWilly Tarreau <w@1wt.eu>
Fri, 24 Feb 2012 10:46:54 +0000 (11:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 24 Feb 2012 10:48:42 +0000 (11:48 +0100)
commit53bf6af3f9648837c961ba6019f1c318652a6d1c
treeb47c3bfa579b63e015b2d54d75bfc8c348228472
parentf09c6603d38bc4d129c4f3bdd1e7063c82af0f65
BUG: fix httplog trailing LF

commit a1cc3811 introduced an undesirable \0\n ending on HTTP log messages. This
is because of an extra character count passed to __send_log() which causes the LF
to be appended past the \0. Some syslog daemons thus log an extra empty line. The
fix is obvious. Fix the function comments to remind what they expect on their input.

This is past 1.5-dev7 regression so there's no backport needed.
src/log.c
src/proto_http.c