dovecot-2.0: auth: Fixed a potential crash on deinit.

dovecot at dovecot.org dovecot at dovecot.org
Sat Jul 17 21:05:55 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/cfd15170dff7
changeset: 11850:cfd15170dff7
user:      Timo Sirainen <tss at iki.fi>
date:      Sat Jul 17 19:05:51 2010 +0100
description:
auth: Fixed a potential crash on deinit.

diffstat:

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

diffs (13 lines):

diff -r 875598cd7e26 -r cfd15170dff7 src/auth/auth-worker-server.c
--- a/src/auth/auth-worker-server.c	Fri Jul 16 17:47:29 2010 +0000
+++ b/src/auth/auth-worker-server.c	Sat Jul 17 19:05:51 2010 +0100
@@ -199,7 +199,8 @@
 				conn->request->context);
 	}
 
-	io_remove(&conn->io);
+	if (conn->io != NULL)
+		io_remove(&conn->io);
 	i_stream_destroy(&conn->input);
 	o_stream_destroy(&conn->output);
 	timeout_remove(&conn->to);


More information about the dovecot-cvs mailing list