mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-30 06:22:00 +01:00
BUG/MINOR: cli: Fix a crash when passing a negative or too large value to "show fd"
This bug is present since 7a4a0ac71d ("MINOR: cli: add a new "show fd"
command").
This should be backported to 1.8.
Signed-off-by: Aurlien Nephtali <aurelien.nephtali@corp.ovh.com>
This commit is contained in:
parent
84b118f312
commit
498a115727
@ -772,7 +772,7 @@ static int cli_io_handler_show_fd(struct appctx *appctx)
|
||||
/* we have two inner loops here, one for the proxy, the other one for
|
||||
* the buffer.
|
||||
*/
|
||||
while (fd < global.maxsock) {
|
||||
while (fd >= 0 && fd < global.maxsock) {
|
||||
struct fdtab fdt;
|
||||
struct listener *li = NULL;
|
||||
struct server *sv = NULL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user