From a3b1830874f703f1cf8c546ab3143b3c50aec76f Mon Sep 17 00:00:00 2001 From: Fredrik Thulin Date: Thu, 2 Jun 2016 11:02:31 +0200 Subject: Allow read callback to not return any data --- libcli.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libcli.c b/libcli.c index 730a8ab..8f08cee 100644 --- a/libcli.c +++ b/libcli.c @@ -1030,6 +1030,8 @@ int cli_loop_read_next_char(struct cli_def *cli, struct cli_loop_ctx *ctx, unsig ctx->l = -1; return CLI_LOOP_CTRL_BREAK; } + if (n == 0) + return CLI_LOOP_CTRL_CONTINUE; } else { -- cgit v1.2.3