From 1821d3c25e80e1f687dc809901094b49aa670d98 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 5 Dec 2016 14:23:37 +0100 Subject: [PATCH] MINOR: cli: Remove useless call to bi_putchk [wt: while it could seem suspicious, the preceeding call to dump_servers_state() indeed flushes the trash in case anything is emitted. No backport needed though.] --- src/proxy.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/proxy.c b/src/proxy.c index 90e9b23d9..81daaa6e4 100644 --- a/src/proxy.c +++ b/src/proxy.c @@ -1360,11 +1360,6 @@ static int cli_io_handler_servers_state(struct appctx *appctx) if (curproxy->cap & PR_CAP_BE) { if (!dump_servers_state(si, &trash)) return 0; - - if (bi_putchk(si_ic(si), &trash) == -1) { - si_applet_cant_put(si); - return 0; - } } /* only the selected proxy is dumped */ if (appctx->ctx.server_state.iid)