dovecot-1.1: If we sent client "waiting for auth process" messag...
dovecot at dovecot.org
dovecot at dovecot.org
Mon Mar 10 04:52:27 EET 2008
details: http://hg.dovecot.org/dovecot-1.1/rev/de4881149c0e
changeset: 7395:de4881149c0e
user: Timo Sirainen <tss at iki.fi>
date: Mon Mar 10 04:52:23 2008 +0200
description:
If we sent client "waiting for auth process" message, we crashed later.
diffstat:
1 file changed, 4 insertions(+), 2 deletions(-)
src/imap-login/client-authenticate.c | 6 ++++--
diffs (23 lines):
diff -r 2d3b9a6d23f5 -r de4881149c0e src/imap-login/client-authenticate.c
--- a/src/imap-login/client-authenticate.c Mon Mar 10 04:24:06 2008 +0200
+++ b/src/imap-login/client-authenticate.c Mon Mar 10 04:52:23 2008 +0200
@@ -201,7 +201,8 @@ static void sasl_callback(struct client
switch (reply) {
case SASL_SERVER_REPLY_SUCCESS:
- timeout_remove(&client->to_auth_waiting);
+ if (client->to_auth_waiting != NULL)
+ timeout_remove(&client->to_auth_waiting);
if (args != NULL) {
if (client_handle_args(client, args, TRUE))
break;
@@ -212,7 +213,8 @@ static void sasl_callback(struct client
break;
case SASL_SERVER_REPLY_AUTH_FAILED:
case SASL_SERVER_REPLY_CLIENT_ERROR:
- timeout_remove(&client->to_auth_waiting);
+ if (client->to_auth_waiting != NULL)
+ timeout_remove(&client->to_auth_waiting);
if (args != NULL) {
if (client_handle_args(client, args, FALSE))
break;
More information about the dovecot-cvs
mailing list