]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-proxy: Minor code cleanup
authorTimo Sirainen <tss@iki.fi>
Tue, 24 Feb 2009 21:41:00 +0000 (16:41 -0500)
committerTimo Sirainen <tss@iki.fi>
Tue, 24 Feb 2009 21:41:00 +0000 (16:41 -0500)
--HG--
branch : HEAD

src/imap-login/imap-proxy.c

index eda3fa65d38ebdfea4f95d71f7a52d48d175426a..1d88a3b73bbb939edba33078ada909bdb204e96f 100644 (file)
@@ -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;
        }
 }