diff --git a/src/cli.c b/src/cli.c index b9afc1b20..3438fffe0 100644 --- a/src/cli.c +++ b/src/cli.c @@ -1005,14 +1005,13 @@ static int cli_io_handler_show_fd(struct appctx *appctx) /* When DEBUG_FD is set, we also report closed FDs that have a * non-null event count to detect stuck ones. */ - if (!fdt.owner + if (!fdt.owner) { #ifdef DEBUG_FD - && !fdt.event_count + if (!fdt.event_count) #endif - ) - goto skip; // closed - - if (fdt.iocb == conn_fd_handler) { + goto skip; // closed + } + else if (fdt.iocb == conn_fd_handler) { conn_flags = ((struct connection *)fdt.owner)->flags; mux = ((struct connection *)fdt.owner)->mux; ctx = ((struct connection *)fdt.owner)->ctx;