]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: clear proxy->table.peers.p for disabled proxies
authorWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 17:59:56 +0000 (19:59 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 1 May 2015 18:05:25 +0000 (20:05 +0200)
commit02df7740fbb5bf55113d9082a237158e26751eea
treef345f58132669228d93882d1de5a542f547e3dc4
parent0f228a037a3565c83309dc9c0e2e546f94c17e8a
BUG/MINOR: config: clear proxy->table.peers.p for disabled proxies

If a table in a disabled proxy references a peers section, the peers
name is not resolved to a pointer to a table, but since it belongs to
a union, it can later be dereferenced. Right now it seems it cannot
happen, but it definitely will after the pending changes.

It doesn't cost anything to backport this into 1.5, it will make gdb
sessions less head-scratching.
src/cfgparse.c