]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stick-tables: Don't let table_process_entry() handle refcnt
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 11 Sep 2025 16:22:34 +0000 (18:22 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 22 Sep 2025 21:14:19 +0000 (23:14 +0200)
commit71199e394c5e63fda7070cd7ae5b4b691411259d
treeb3c3b33d9859dacbd9cb127b4378509085fcdb88
parent8c8e50e09a56ba0fce59d6ee448e5fb4bf25b2ce
BUG/MEDIUM: stick-tables: Don't let table_process_entry() handle refcnt

Instead of having table_process_entry() decrement the session's ref
counter, do it outside, from the caller. Some were missed, such as when
an action was invalid, which would lead to the ref counter not being
decremented, and the session not being destroyable.
It makes more sense to do that from the caller, who just obtained the
ref counter, anyway.
This should be backporter up to 2.8.
src/stick_table.c