dovecot-1.2: pop3-login: Don't crash after successful login.

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/98e1115cd8f0
changeset: 8775:98e1115cd8f0
user:      Timo Sirainen <tss at iki.fi>
date:      Tue Feb 24 16:41:08 2009 -0500
description:
pop3-login: Don't crash after successful login.

diffstat:

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

diffs (21 lines):

diff -r e9f711a08dd5 -r 98e1115cd8f0 src/pop3-login/pop3-proxy.c
--- a/src/pop3-login/pop3-proxy.c	Tue Feb 24 16:41:00 2009 -0500
+++ b/src/pop3-login/pop3-proxy.c	Tue Feb 24 16:41:08 2009 -0500
@@ -134,7 +134,7 @@ static int proxy_input_line(struct pop3_
 		client->output = NULL;
 		client->common.fd = -1;
 		client_destroy_success(client, str_c(str));
-		return 0;
+		return 1;
 	}
 
 	/* Login failed. Pass through the error message to client
@@ -208,7 +208,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