]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: fwlc: Handle memory allocation failures.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 1 Oct 2025 16:05:53 +0000 (18:05 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 1 Oct 2025 16:13:33 +0000 (18:13 +0200)
commitb71bb6c2aec166a340ae6967731587106c886570
treeee6f1012f31674db4c02201526a615ef65163edd
parentf4a9c6ffae6d914dd7cd00ab0fa9d84be0fe9db6
BUG/MEDIUM: fwlc: Handle memory allocation failures.

Properly handle memory allocation failures, by checking the return value
for pool_alloc(), and if it fails, make sure that the caller will take
it into account.
The only use of pool_alloc() in fwlc is to allocate the tree elements in
order to properly queue the server into the ebtree, so if that
allocation fails, just schedule the requeue tasklet, that will try
again, until it hopefully eventually succeeds.

This should be backported to 3.2.
This should fix github issue #3143.
src/lb_fwlc.c