Mercurial > dovecot > original-hg > dovecot-1.2
changeset 1571:1cadf76d7c4c HEAD
imap-login could get into infinite loop if connection was closed improperly.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 25 Jun 2003 02:10:44 +0300 |
parents | 6ec903a5d333 |
children | e3d896a9487d |
files | src/imap-login/client.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/imap-login/client.c Wed Jun 25 01:53:54 2003 +0300 +++ b/src/imap-login/client.c Wed Jun 25 02:10:44 2003 +0300 @@ -202,7 +202,7 @@ /* remove \r\n */ if (client->skip_line) { if (!client_skip_line(client)) - return TRUE; + return FALSE; client->skip_line = FALSE; } @@ -225,7 +225,7 @@ case -1: /* error */ client_destroy(client, NULL); - return TRUE; + return FALSE; case -2: /* not enough data */ return FALSE;