]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: cli: use the current argument to parse the FD spec in "show fd"
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 29 Jul 2026 20:39:22 +0000 (22:39 +0200)
committerOlivier Houchard <cognet@ci0.org>
Wed, 29 Jul 2026 20:52:29 +0000 (22:52 +0200)
commit355566f876bc1551b4fce28e89f5c763e9ea06a7
tree13e52fdee01a7ea56c32bd22cad4d7280c246e59
parent46376cfc20bfa62b872dedc58aa566f57729d1f9
BUG/MINOR: cli: use the current argument to parse the FD spec in "show fd"

Commit 1cb041a6e added filtering to show fd, which means the number of
arguments can now change, however args[2] was still used from time to
time. Fix this by using args|arg] instead when relevant.

Note that before 3.4, there is only one instance of that, atoi(args[2])
should be atoi(args[arg]). That could lead to the wrong fd being used.

This should be backported up to 2.8.
src/cli.c