From: Timo Sirainen Date: Fri, 4 Sep 2009 18:17:03 +0000 (-0400) Subject: auth: Don't notify lib-master when primary master connection was destroyed, since... X-Git-Tag: 2.0.alpha1~185 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d20bb66c85500545aed02a21bedf806f6be6662a;p=thirdparty%2Fdovecot%2Fcore.git auth: Don't notify lib-master when primary master connection was destroyed, since it wasn't created through it. --HG-- branch : HEAD --- diff --git a/src/auth/auth-master-connection.c b/src/auth/auth-master-connection.c index a62ba8bd4b..8fe7cc7319 100644 --- a/src/auth/auth-master-connection.c +++ b/src/auth/auth-master-connection.c @@ -488,6 +488,7 @@ void auth_master_connection_destroy(struct auth_master_connection **_conn) struct auth_master_connection *conn = *_conn; struct auth_master_connection *const *masters; unsigned int i, count; + bool service_connection = conn->fd != MASTER_AUTH_FD; *_conn = NULL; if (conn->destroyed) @@ -514,7 +515,8 @@ void auth_master_connection_destroy(struct auth_master_connection **_conn) conn->fd = -1; } - master_service_client_connection_destroyed(master_service); + if (service_connection) + master_service_client_connection_destroyed(master_service); auth_master_connection_unref(&conn); }