]> git.ipfire.org Git - thirdparty/haproxy.git/commit
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)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Feb 2025 14:44:21 +0000 (15:44 +0100)
commit75e8c8ed330f2ad1b6b33630efebb5041af3d5e9
tree74a446179c8a7ae1583b662f46bb127bda4e5223
parent372cc696d44e6853b9f7920f1c2d965736029764
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.
src/cli.c