]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3-login: Don't crash after successful login.
authorTimo Sirainen <tss@iki.fi>
Tue, 24 Feb 2009 21:41:08 +0000 (16:41 -0500)
committerTimo Sirainen <tss@iki.fi>
Tue, 24 Feb 2009 21:41:08 +0000 (16:41 -0500)
--HG--
branch : HEAD

src/pop3-login/pop3-proxy.c

index d65710c2d28c97c041239eec18f9ca134a68f4e5..d6b70aace2f0741ceef5f2936e1a72879836c1b9 100644 (file)
@@ -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;
        }
 }