From: Timo Sirainen Date: Tue, 24 Feb 2009 21:41:00 +0000 (-0500) Subject: imap-proxy: Minor code cleanup X-Git-Tag: 1.2.beta2~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=eb188b2a2d5395b2c6125f875ec053b04a10e5fb;p=thirdparty%2Fdovecot%2Fcore.git imap-proxy: Minor code cleanup --HG-- branch : HEAD --- diff --git a/src/imap-login/imap-proxy.c b/src/imap-login/imap-proxy.c index eda3fa65d3..1d88a3b73b 100644 --- a/src/imap-login/imap-proxy.c +++ b/src/imap-login/imap-proxy.c @@ -184,7 +184,7 @@ static int proxy_input_line(struct imap_client *client, 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 *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; } }