From: Timo Sirainen Date: Sat, 17 Jul 2010 18:05:51 +0000 (+0100) Subject: auth: Fixed a potential crash on deinit. X-Git-Tag: 2.0.rc3~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ee0285cd56c4972c498abd1c95410c3d7ba8b48;p=thirdparty%2Fdovecot%2Fcore.git auth: Fixed a potential crash on deinit. --- diff --git a/src/auth/auth-worker-server.c b/src/auth/auth-worker-server.c index 10f2b413a7..6eccea89b7 100644 --- a/src/auth/auth-worker-server.c +++ b/src/auth/auth-worker-server.c @@ -199,7 +199,8 @@ static void auth_worker_destroy(struct auth_worker_connection **_conn, 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);