]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: server/cli: unlock server lock on failure in cli_parse_set_server
authorWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 06:09:26 +0000 (06:09 +0000)
committerWilly Tarreau <w@1wt.eu>
Fri, 15 May 2026 15:39:25 +0000 (17:39 +0200)
commit8aa99dfc745ffd4323f311e70e990753a9f9f364
tree4dfee931ddef04db20fb465d444c1be18323cc62
parent5b468a08200f1af0293bb0d6da94e53570281fe8
BUG/MEDIUM: server/cli: unlock server lock on failure in cli_parse_set_server

In cli_parse_set_server()'s 'ssl' branch, the server lock is taken,
and not released in case srv_set_ssl() fails, resulting in a dead lock
and a panic the next time an attempt to touch this server is made. The
lock must be released on all error paths.

This was introduced in 3.3 by commit f8f94ffc9 ("BUG/MEDIUM: server:
Use sni as pool connection name for SSL server only") which was marked
for backporting to 3.0, so this must likely be backported that far.
src/server.c