dovecot-2.2: doveadm: Fixed printing large input from doveadm-se...

dovecot at dovecot.org dovecot at dovecot.org
Mon Oct 29 17:55:53 EET 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/94c7e875f9b9
changeset: 15289:94c7e875f9b9
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Oct 02 22:37:49 2012 +0300
description:
doveadm: Fixed printing large input from doveadm-server.

diffstat:

 src/doveadm/server-connection.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 83695d6d41aa -r 94c7e875f9b9 src/doveadm/server-connection.c
--- a/src/doveadm/server-connection.c	Tue Oct 02 21:56:09 2012 +0300
+++ b/src/doveadm/server-connection.c	Tue Oct 02 22:37:49 2012 +0300
@@ -100,7 +100,8 @@
 {
 	if (conn->streaming) {
 		conn->streaming = FALSE;
-		stream_data(str, data, size);
+		if (size > 0)
+			stream_data(str, data, size);
 		doveadm_print_stream("", 0);
 	} else {
 		const char *text;


More information about the dovecot-cvs mailing list