[dovecot-cvs] dovecot/src/imap-login client.c,1.13,1.14
cras at procontrol.fi
cras at procontrol.fi
Wed Jun 25 03:10:46 EEST 2003
Update of /home/cvs/dovecot/src/imap-login
In directory danu:/tmp/cvs-serv10914
Modified Files:
client.c
Log Message:
imap-login could get into infinite loop if connection was closed improperly.
Index: client.c
===================================================================
RCS file: /home/cvs/dovecot/src/imap-login/client.c,v
retrieving revision 1.13
retrieving revision 1.14
diff -u -d -r1.13 -r1.14
--- client.c 23 May 2003 14:40:50 -0000 1.13
+++ client.c 24 Jun 2003 23:10:44 -0000 1.14
@@ -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;
More information about the dovecot-cvs
mailing list