]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MAJOR: http: don't emit the send-name-header when no server is available
authorWilly Tarreau <w@1wt.eu>
Thu, 4 Jul 2013 09:44:27 +0000 (11:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 4 Jul 2013 09:44:27 +0000 (11:44 +0200)
commit0fc36e3ae99ccbe6de88cf64093f3045e526d088
treed1b3b4c7225edc7511c68eb1f1da543c02cc023c
parent092502605e47e662669c53292a697c180026424f
BUG/MAJOR: http: don't emit the send-name-header when no server is available

Lukas Benes reported that http-send-name-header causes a segfault if no
server is available because we're dereferencing the session's target which
is NULL. The tiniest reproducer looks like this :

     listen foo
         bind :1234
         mode http
         http-send-name-header srv

This obvious fix must be backported to 1.4 which is affected as well.
src/session.c