mirror of
https://github.com/haproxy/haproxy.git
synced 2026-03-02 21:30:25 -05: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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Reference in a new issue