]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: Remove useless call to bi_putchk
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 5 Dec 2016 13:23:37 +0000 (14:23 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 12 Dec 2016 16:55:13 +0000 (17:55 +0100)
[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

index 90e9b23d945d36fa5cf7ed32a1e7ab6eb6b22580..81daaa6e4c6d6a62ea920110b4d3f97adced6062 100644 (file)
@@ -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)