dovecot-2.0: lib-auth: Don't crash in auth_master_*() lookups if...

dovecot at dovecot.org dovecot at dovecot.org
Fri Nov 5 14:15:54 EET 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/55d144a33e62
changeset: 12392:55d144a33e62
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Nov 05 12:15:53 2010 +0000
description:
lib-auth: Don't crash in auth_master_*() lookups if caller hasn't created ioloop.

diffstat:

 src/lib-auth/auth-master.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r 5a10aaf6f510 -r 55d144a33e62 src/lib-auth/auth-master.c
--- a/src/lib-auth/auth-master.c	Thu Nov 04 18:56:47 2010 +0000
+++ b/src/lib-auth/auth-master.c	Fri Nov 05 12:15:53 2010 +0000
@@ -370,7 +370,8 @@
 		io_loop_run(conn->ioloop);
 	}
 
-	auth_master_unset_io(conn, prev_ioloop);
+	if (prev_ioloop != NULL)
+		auth_master_unset_io(conn, prev_ioloop);
 	if (conn->aborted) {
 		conn->aborted = FALSE;
 		auth_connection_close(conn);


More information about the dovecot-cvs mailing list