BUG/MEDIUM: hlua: Lock pattern references to perform set/add/del operations
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 3 Jun 2020 16:39:16 +0000 (18:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 5 Jun 2020 09:03:48 +0000 (11:03 +0200)
commit1a97b5edef00991377ae2a6a97caa1b16b715dc1
tree7ea21360c215600d85fdd4c7cd5ac8bf01f5ee9d
parentc9dbbbdfc87a948418e4b0b2cc2af2ab896db537
BUG/MEDIUM: hlua: Lock pattern references to perform set/add/del operations

The pattern references lock must be hold to perform set/add/del
operations. Unfortunately, it is not true for the lua functions manipulating acl
and map files.

This patch should fix the issue #664. It must be backported as far as 1.8.

(cherry picked from commit 5cf2dfc5fd08b7ff8d27d6293e2aaa8ec18fc607)
Signed-off-by: Christopher Faulet <cfaulet@haproxy.com>
src/hlua.c