From: Willy Tarreau Date: Tue, 19 Jun 2018 05:01:36 +0000 (+0200) Subject: MINOR: cli: use the new buffer API X-Git-Tag: v1.9-dev1~102 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=851d12c3d4346fe8062f0a3e5196b9e1de07e657;p=thirdparty%2Fhaproxy.git MINOR: cli: use the new buffer API Almost nothing required to be touched. --- diff --git a/src/cli.c b/src/cli.c index c34078f981..c656e4b330 100644 --- 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; }