]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: leastconn: Unlock the write lock on allocation failure
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 1 Jun 2026 13:52:21 +0000 (15:52 +0200)
committerOlivier Houchard <cognet@ci0.org>
Mon, 1 Jun 2026 14:08:45 +0000 (16:08 +0200)
commitc0aa9f01f113c2b61794107ee1b79e28a59bd896
treee9118a7d94100f340b11e4eb7dbc659628c796b0
parent4a540a4fb7b148a8d7d32a8b5434fc51e5dd6bcd
BUG/MEDIUM: leastconn: Unlock the write lock on allocation failure

When we fail to allocate a new tree element, we're still holding the
write lock, so we should do an write unlock, not a read unlock, or the
lock will get corrupted and most likely this will end in a deadlock.

This should be backported up to 3.2.
src/lb_fwlc.c