]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: config: immediately abort if peers section has no name
authorWilly Tarreau <w@1wt.eu>
Sun, 16 Feb 2014 07:20:13 +0000 (08:20 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 16 Feb 2014 07:20:13 +0000 (08:20 +0100)
commit5498472ec0421eea77992c70d560828a6153df6e
tree1cd24d5fcec4c3b6658555801f64a036baef6020
parent9a60ff9cb60cb11fbf6db932dcfbc3fe810212d8
BUG/MEDIUM: config: immediately abort if peers section has no name

Cyril Bonté reported that despite commit 0dbbf317 which attempted
to fix the crash when a peers section has no name, we still get a
segfault after the error message when parsing the peers. The reason
is that the returned error code is ERR_FATAL and not ERR_ABORT, so
the parsing continues while the section was not initialized.

This is 1.5-specific, no backport is needed.
src/cfgparse.c