]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: http: http-request add-header emits a corrupted header
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Dec 2012 01:44:01 +0000 (02:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Dec 2012 01:46:36 +0000 (02:46 +0100)
commitdf97447088ec931320fca6370cc360cb19a82a59
tree6b827bbdb9e4d8cb3cb13618f9cfbcd92c671706
parent1a1e8072f9b7c04a02e3247e6feb8a09cad0bd67
BUG/MINOR: http: http-request add-header emits a corrupted header

David BERARD reported that http-request add-header passes a \0 along
with the header field, which of course is not appropriate. This is
caused by build_logline() which sometimes returns the size with the
trailing zero and sometimes can return an empty string. Let's fix
this function instead of fixing the places where it's used.
src/log.c