]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: cli: use the new buffer API
authorWilly Tarreau <w@1wt.eu>
Tue, 19 Jun 2018 05:01:36 +0000 (07:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 19 Jul 2018 14:23:42 +0000 (16:23 +0200)
Almost nothing required to be touched.

src/cli.c

index c34078f98159de9ff15cfd4e96523601ae59ea07..c656e4b3300d488588bc93b89d66534b1fb154a3 100644 (file)
--- a/src/cli.c
+++ b/src/cli.c
@@ -730,7 +730,7 @@ static void cli_io_handler(struct appctx *appctx)
                         * buffer is empty. This still allows pipelined requests
                         * to be sent in non-interactive mode.
                         */
-                       if ((res->flags & (CF_SHUTW|CF_SHUTW_NOW)) || (!(appctx->st1 & APPCTX_CLI_ST1_PROMPT) && !req->buf->o)) {
+                       if ((res->flags & (CF_SHUTW|CF_SHUTW_NOW)) || (!(appctx->st1 & APPCTX_CLI_ST1_PROMPT) && !co_data(req))) {
                                appctx->st0 = CLI_ST_END;
                                continue;
                        }