diff --git a/src/cli.c b/src/cli.c index d5c615bb1..cff59f28a 100644 --- a/src/cli.c +++ b/src/cli.c @@ -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 < maxfd) { + while (fd < global.maxsock) { struct fdtab fdt; struct listener *li = NULL; struct server *sv = NULL;