[Cryptech-Commits] [user/ft/libcli] 01/03: Allow read callback to not return any data

git at cryptech.is git at cryptech.is
Tue Jun 21 19:00:51 UTC 2016


This is an automated email from the git hooks/post-receive script.

fredrik at thulin.net pushed a commit to branch master
in repository user/ft/libcli.

commit a3b1830874f703f1cf8c546ab3143b3c50aec76f
Author: Fredrik Thulin <fredrik at thulin.net>
AuthorDate: Thu Jun 2 11:02:31 2016 +0200

    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
     {



More information about the Commits mailing list