dovecot-1.2: imap-proxy: Minor code cleanup

dovecot at dovecot.org dovecot at dovecot.org
Tue Feb 24 23:41:13 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/e9f711a08dd5
changeset: 8774:e9f711a08dd5
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Feb 24 16:41:00 2009 -0500
description:
imap-proxy: Minor code cleanup

diffstat:

1 file changed, 2 insertions(+), 2 deletions(-)
src/imap-login/imap-proxy.c |    4 ++--

diffs (21 lines):

diff -r 25dd184fc947 -r e9f711a08dd5 src/imap-login/imap-proxy.c
--- a/src/imap-login/imap-proxy.c	Mon Feb 23 13:41:50 2009 -0500
+++ b/src/imap-login/imap-proxy.c	Tue Feb 24 16:41:00 2009 -0500
@@ -184,7 +184,7 @@ static int proxy_input_line(struct imap_
 		client->output = NULL;
 		client->common.fd = -1;
 		client_destroy_success(client, str_c(str));
-		return -1;
+		return 1;
 	} else if (strncmp(line, "L ", 2) == 0) {
 		/* If the backend server isn't Dovecot, the error message may
 		   be different from Dovecot's "user doesn't exist" error. This
@@ -269,7 +269,7 @@ static void proxy_input(struct istream *
 	}
 
 	while ((line = i_stream_next_line(input)) != NULL) {
-		if (proxy_input_line(client, output, line) < 0)
+		if (proxy_input_line(client, output, line) != 0)
 			break;
 	}
 }


More information about the dovecot-cvs mailing list