]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: threads/vars: Fix deadlock in register_name
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 8 Dec 2017 08:17:39 +0000 (09:17 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 8 Dec 2017 09:37:24 +0000 (10:37 +0100)
commiteb3e276d3911c4c95d1e2f270bab354440378701
tree2f3f9748402f432a078b1bd8d28cfc85fbfb7055
parent1714b9f28694d750d446917672dd59c46e16afd7
BUG/MEDIUM: threads/vars: Fix deadlock in register_name

In register_name, before locking the var_names array, we check the variable name
validity. So if we try to register an invalid or empty name, we need to return
without unlocking it (because it was never locked).

This patch must be backported in 1.8.
src/vars.c