]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stick-tables: Don't forget to dec count on failure.
authorOlivier Houchard <ohouchard@haproxy.com>
Tue, 14 Oct 2025 16:11:31 +0000 (18:11 +0200)
committerOlivier Houchard <cognet@ci0.org>
Thu, 16 Oct 2025 21:46:37 +0000 (23:46 +0200)
commit8d31784c0f1368b5004f089b4f5512298766dfaf
treecfc29b31e6dbcf90d4f53ac01c90c536808660ed
parent03e9a5a1e74b88c7ab7a9522c0345f8d54ec373b
BUG/MEDIUM: stick-tables: Don't forget to dec count on failure.

In stksess_new(), if we failed to allocate memory for the new stksess,
don't forget to decrement the table entry count, as nobody else will
do it for us.
An artificially high count could lead to at least purging entries while
there is no need to.

This should be backported up to 2.8.

WIP decrement current on allocation failure
src/stick_table.c