]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
imap-login could get into infinite loop if connection was closed improperly.
authorTimo Sirainen <tss@iki.fi>
Tue, 24 Jun 2003 23:10:44 +0000 (02:10 +0300)
committerTimo Sirainen <tss@iki.fi>
Tue, 24 Jun 2003 23:10:44 +0000 (02:10 +0300)
--HG--
branch : HEAD

src/imap-login/client.c

index 19f054625118d82c98a0ab6463d32986900762f5..2e7440a289e01fd2fd2fb7dcf8b8f2a7d1938558 100644 (file)
@@ -202,7 +202,7 @@ static int client_handle_input(struct imap_client *client)
                /* remove \r\n */
                if (client->skip_line) {
                        if (!client_skip_line(client))
-                               return TRUE;
+                               return FALSE;
                         client->skip_line = FALSE;
                }
 
@@ -225,7 +225,7 @@ static int client_handle_input(struct imap_client *client)
        case -1:
                /* error */
                client_destroy(client, NULL);
-               return TRUE;
+               return FALSE;
        case -2:
                /* not enough data */
                return FALSE;