From: Timo Sirainen Date: Tue, 24 Feb 2009 21:41:08 +0000 (-0500) Subject: pop3-login: Don't crash after successful login. X-Git-Tag: 1.2.beta2~56 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f8a78c816b4dbfda42f13d8ee152e0cdb28c6a4a;p=thirdparty%2Fdovecot%2Fcore.git pop3-login: Don't crash after successful login. --HG-- branch : HEAD --- diff --git a/src/pop3-login/pop3-proxy.c b/src/pop3-login/pop3-proxy.c index d65710c2d2..d6b70aace2 100644 --- a/src/pop3-login/pop3-proxy.c +++ b/src/pop3-login/pop3-proxy.c @@ -134,7 +134,7 @@ static int proxy_input_line(struct pop3_client *client, 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 *input, struct ostream *output, } 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; } }