]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: fix a segfault when parsing a config with undeclared peers
authorWilly Tarreau <w@1wt.eu>
Fri, 28 Oct 2011 12:16:49 +0000 (14:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 28 Oct 2011 12:16:49 +0000 (14:16 +0200)
commitd66bf96d5b0eff5960aa1c00bccd2e3893a3c731
treeed5b01550291ca333491fdb95f46eb4cf4738aba
parentac1932da3ec4614f60f3ce22518a9a0a61a11c67
BUG/MINOR: fix a segfault when parsing a config with undeclared peers

Baptiste Assmann reported that a config where a non-existing peers
section is referenced by a stick-table causes a segfault after displaying
the error. This is caused by the freeing of the peers. Setting it to NULL
after displaying the error fixes the issue.
src/cfgparse.c