]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: send_proxy: fix initialisation of send_proxy_ofs
authorWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 13:20:43 +0000 (15:20 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 8 May 2012 19:28:16 +0000 (21:28 +0200)
commit63e7fe310ef50625faeecb2fa41fa3914a24f577
treeb2ad8ca1858f52a41796ceca13d2ce7393da8bed
parent515393649c3586124292be5373e13b9de7dcdd53
BUG/MEDIUM: send_proxy: fix initialisation of send_proxy_ofs

Commit b22e55bc introduced send_proxy_ofs but forgot to initialize it,
which remained unnoticed since it's always at the same place in the
stream interface. On a machine with dirty RAM returned by malloc(),
some responses were holding a PROXY header, which normally is not
possible.

The problem goes away after properly initializing the field upon each
new session_accept().

This fix does not need to be backported except if any code makes use of
a backport of this feature.
src/peers.c
src/session.c