BUG/MINOR: cli: Fix a possible infinite loop in _getsocks()
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 14:37:52 +0000 (15:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Feb 2025 10:43:06 +0000 (11:43 +0100)
commit48022892602a61ed695aad552a0dcda4457308c2
tree6fa80e30f0f3feb77cc35941f1e4451f186be1c5
parente9e1fbb7c858735e1376b069a8db7ca3b98f58ce
BUG/MINOR: cli: Fix a possible infinite loop in _getsocks()

In _getsocks() functuoin, when we failed to set the unix socket in
non-blocking mode, a goto to "out" label led to loop infinitly. To fix the
issue, we must only let the function exit.

This patch should be backported to all stable versions.

(cherry picked from commit 75e8c8ed330f2ad1b6b33630efebb5041af3d5e9)
Signed-off-by: Willy Tarreau <w@1wt.eu>
src/cli.c