dovecot-2.0: director: Fixed handling HOST-FLUSH commands.

dovecot at dovecot.org dovecot at dovecot.org
Wed Jul 14 16:51:46 EEST 2010


details:   http://hg.dovecot.org/dovecot-2.0/rev/9e41df232dd6
changeset: 11816:9e41df232dd6
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Jul 14 14:51:41 2010 +0100
description:
director: Fixed handling HOST-FLUSH commands.

diffstat:

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

diffs (21 lines):

diff -r 75441abd8d6f -r 9e41df232dd6 src/director/director-connection.c
--- a/src/director/director-connection.c	Wed Jul 14 14:05:47 2010 +0100
+++ b/src/director/director-connection.c	Wed Jul 14 14:51:41 2010 +0100
@@ -446,15 +446,13 @@
 	struct director_host *dir_host;
 	struct mail_host *host;
 	struct ip_addr ip;
-	unsigned int seq;
 	int ret;
 
 	if ((ret = director_cmd_is_seen(conn, &args, &dir_host)) != 0)
 		return ret > 0;
 
-	if (str_array_length(args) != 2 ||
-	    net_addr2ip(args[0], &ip) < 0 ||
-	    str_to_uint(args[1], &seq) < 0) {
+	if (str_array_length(args) != 1 ||
+	    net_addr2ip(args[0], &ip) < 0) {
 		i_error("director(%s): Invalid HOST-FLUSH args", conn->name);
 		return FALSE;
 	}


More information about the dovecot-cvs mailing list