From eb188b2a2d5395b2c6125f875ec053b04a10e5fb Mon Sep 17 00:00:00 2001 From: Timo Sirainen Date: Tue, 24 Feb 2009 16:41:00 -0500 Subject: [PATCH] imap-proxy: Minor code cleanup --HG-- branch : HEAD --- src/imap-login/imap-proxy.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; } } -- 2.47.3