dovecot-2.0: director: Don't send expired user records to remote...

dovecot at dovecot.org dovecot at dovecot.org
Mon Jun 21 18:57:33 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/d3dfe9c271bc
changeset: 11598:d3dfe9c271bc
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Jun 21 16:57:28 2010 +0100
description:
director: Don't send expired user records to remote servers.

diffstat:

 src/director/director-connection.c |  6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diffs (16 lines):

diff -r 01c148824d52 -r d3dfe9c271bc src/director/director-connection.c
--- a/src/director/director-connection.c	Mon Jun 21 16:54:11 2010 +0100
+++ b/src/director/director-connection.c	Mon Jun 21 16:57:28 2010 +0100
@@ -731,6 +731,12 @@
 
 	o_stream_cork(conn->output);
 	while ((user = user_directory_iter_next(conn->user_iter)) != NULL) {
+		if (!user_directory_user_has_connections(conn->dir->users,
+							 user)) {
+			/* user is already expired */
+			continue;
+		}
+
 		T_BEGIN {
 			const char *line;
 


More information about the dovecot-cvs mailing list