aboutsummaryrefslogtreecommitdiff
path: root/libcli.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcli.c')
-rw-r--r--libcli.c2
1 files changed, 2 insertions, 0 deletions
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
{