]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: haproxy: abort config parsing on fatal errors for post parsing hooks
authorAurelien DARRAGON <adarragon@haproxy.com>
Wed, 27 Aug 2025 10:27:53 +0000 (12:27 +0200)
committerAurelien DARRAGON <adarragon@haproxy.com>
Wed, 27 Aug 2025 10:54:13 +0000 (12:54 +0200)
commit9736221e90e51e9fd63e04f9ac638cf777071791
treefbaafa45ddff7a84f2f9e5b5ffe9e9e26ad1f296
parent49db9739d0591d15907e0241f3bcc8e7adb4fd3a
MINOR: haproxy: abort config parsing on fatal errors for post parsing hooks

When pre-check and post-check postparsing hooks= are evaluated in
step_init_2() potential fatal errors are ignored during the iteration
and are only taken into account at the end of the loop. This is not ideal
because some errors (ie: memory errors) could cause multiple alert
messages in a row, which could make troubleshooting harder for the user.

Let's stop as soon as a fatal error is encountered for post parsing
hooks, as we use to do everywhere else.
src/haproxy.c