]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: config: fix a crash on startup when a disabled backend references a peer
authorWilly Tarreau <w@1wt.eu>
Mon, 24 Feb 2014 19:59:47 +0000 (20:59 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 24 Feb 2014 19:59:47 +0000 (20:59 +0100)
commit583021306b34b9860e61b60d4e026b563a04a019
treef4fbd93f084f3e7e0ffec0b9c1d119f30387db15
parent38d25d2a19efda87ba3424c7883c7b81e44f6ec9
BUG/MINOR: config: fix a crash on startup when a disabled backend references a peer

Disabled backends don't have their symbols resolved. We must not initialize
their peers section since they're not valid and instead still contain the
section's name.

There are other places where such unions are still in use, and other similar
errors might still happen. Ideally we should get rid of all of them in the
quite sensible config stage.
src/cfgparse.c