dovecot-2.2: doveadm-server: Don't continue handling commands if...

dovecot at dovecot.org dovecot at dovecot.org
Sun Mar 24 18:58:27 EET 2013


details:   http://hg.dovecot.org/dovecot-2.2/rev/ce2b9b430eed
changeset: 16106:ce2b9b430eed
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Mar 24 18:58:20 2013 +0200
description:
doveadm-server: Don't continue handling commands if input stream is already closed.
This fixes trying to handle extra input from previous dsync command.

diffstat:

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

diffs (13 lines):

diff -r d3e5585778f8 -r ce2b9b430eed src/doveadm/client-connection.c
--- a/src/doveadm/client-connection.c	Sun Mar 24 18:48:28 2013 +0200
+++ b/src/doveadm/client-connection.c	Sun Mar 24 18:58:20 2013 +0200
@@ -308,7 +308,8 @@
 		conn->authenticated = TRUE;
 	}
 
-	while (ok && (line = i_stream_read_next_line(conn->input)) != NULL) {
+	while (ok && !conn->input->closed &&
+	       (line = i_stream_read_next_line(conn->input)) != NULL) {
 		T_BEGIN {
 			char **args;
 


More information about the dovecot-cvs mailing list