]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: hlua: unlock Patref before add_bulk type error
authorKelly Kane <kelly@hawknetworks.com>
Sun, 25 Oct 2026 01:03:03 +0000 (01:03 +0000)
committerAurelien DARRAGON <adarragon@haproxy.com>
Tue, 27 Oct 2026 11:58:43 +0000 (12:58 +0100)
commitdbcc5a4a490802bc1585292d4ac75c136f61d522
treece0347f4c221a74007bded9634406cba421e0c11
parent3e758361c327bdf9e15ef3e2db99f1e9166a9763
BUG/MINOR: hlua: unlock Patref before add_bulk type error

Patref:add_bulk checks table entries while holding the pattern reference
write lock. luaL_checktype() raises on a non-string entry and bypasses
the unlock, blocking later updates. Check types without raising while
locked, then unlock before reporting the original Lua error.

Signed-off-by: Kelly Kane <kelly@hawknetworks.com>
It should be backported to 3.2.
src/hlua_fcn.c