Mercurial > dovecot > original-hg > dovecot-1.2
changeset 8774:e9f711a08dd5 HEAD
imap-proxy: Minor code cleanup
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Tue, 24 Feb 2009 16:41:00 -0500 |
parents | 25dd184fc947 |
children | 98e1115cd8f0 |
files | src/imap-login/imap-proxy.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- 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 @@ 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 @@ } 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; } }