]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[BUG] clf logs segfault when capturing a non existant header
authorCyril Bonté <cyril.bonte@free.fr>
Sat, 13 Mar 2010 14:15:07 +0000 (15:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 14 Mar 2010 19:02:10 +0000 (20:02 +0100)
commit7f2c53938cd5f7cedcdad00781dd5a69b897c2d9
treef33b844f6d3173d1afde60bde1288268fd42b39c
parent296897f2c6b01c3702487eecf5f413321b23528b
[BUG] clf logs segfault when capturing a non existant header

Hi Willy,

Please find a small patch to prevent haproxy segfaulting when logging captured headers in CLF format.

Example config to reproduce the bug :
listen test :10080
log 127.0.0.1 local7 debug err
mode http
option httplog clf
capture request header NonExistantHeader len 16

--
Cyril Bonté
src/proto_http.c