]> git.ipfire.org Git - thirdparty/haproxy.git/commit
[MINOR] config: don't report error on all subsequent files on failure
authorWilly Tarreau <w@1wt.eu>
Tue, 15 Dec 2009 20:46:25 +0000 (21:46 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 15 Dec 2009 20:50:18 +0000 (21:50 +0100)
commite3a93ff814e773aa857d9d9e4bae96eca0288e24
treeae034b56ad1b023de41cca484b66c8d80d4a290c
parent97c8d9e1a54ac3e8def3f0b0987f7e4ad0a8cb6c
[MINOR] config: don't report error on all subsequent files on failure

Cyril Bonté found that when an error is detected in one config file, it
is also reported in all other ones, which is wrong. The fix obviously
consists in checking the return code from readcfgfile() and not the
accumulator.
(cherry picked from commit 25a67fae3e2dd374c51c5e50633ea68b08157fab)
src/haproxy.c