[dovecot-cvs] dovecot/src/imap-login imap-proxy.c,1.15,1.16
tss at dovecot.org
tss at dovecot.org
Thu Feb 15 13:31:53 UTC 2007
Update of /var/lib/cvs/dovecot/src/imap-login
In directory talvi:/tmp/cvs-serv24821/imap-login
Modified Files:
imap-proxy.c
Log Message:
Don't crash if the remote server disconnects before we're logged in.
Index: imap-proxy.c
===================================================================
RCS file: /var/lib/cvs/dovecot/src/imap-login/imap-proxy.c,v
retrieving revision 1.15
retrieving revision 1.16
diff -u -d -r1.15 -r1.16
--- imap-proxy.c 19 Jan 2007 21:19:49 -0000 1.15
+++ imap-proxy.c 15 Feb 2007 13:31:51 -0000 1.16
@@ -99,12 +99,19 @@
return;
}
+ if (client->destroyed) {
+ /* we came here from client_destroy() */
+ return;
+ }
+
/* failed for some reason, probably server disconnected */
client_send_line(client, "* BYE Temporary login failure.");
client_destroy(client, NULL);
return;
}
+ i_assert(!client->destroyed);
+
switch (i_stream_read(input)) {
case -2:
/* buffer full */
More information about the dovecot-cvs
mailing list