dovecot-2.0: auth: Don't notify lib-master when primary master c...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 4 21:17:55 EEST 2009
details: http://hg.dovecot.org/dovecot-2.0/rev/6168a479c54b
changeset: 9867:6168a479c54b
user: Timo Sirainen <tss at iki.fi>
date: Fri Sep 04 14:17:03 2009 -0400
description:
auth: Don't notify lib-master when primary master connection was destroyed, since it wasn't created through it.
diffstat:
1 file changed, 3 insertions(+), 1 deletion(-)
src/auth/auth-master-connection.c | 4 +++-
diffs (21 lines):
diff -r 1d2d0aa8e313 -r 6168a479c54b src/auth/auth-master-connection.c
--- a/src/auth/auth-master-connection.c Fri Sep 04 13:47:57 2009 -0400
+++ b/src/auth/auth-master-connection.c Fri Sep 04 14:17:03 2009 -0400
@@ -488,6 +488,7 @@ void auth_master_connection_destroy(stru
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(stru
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);
}
More information about the dovecot-cvs
mailing list