From: Timo Sirainen Date: Tue, 25 Oct 2016 18:20:54 +0000 (+0300) Subject: director: Fix HOST-RESET-USERS with host parameter. X-Git-Tag: 2.2.26~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=31e3c2060bf44dbd50e4d92e1e358306447557b1;p=thirdparty%2Fdovecot%2Fcore.git director: Fix HOST-RESET-USERS with host parameter. The logic was reversed: It should flush the specified host, not some other host. Broken by 11ee3b40320a31669bd717fecbe1e332dad4fd84 --- diff --git a/src/director/doveadm-connection.c b/src/director/doveadm-connection.c index f2e652664c..5de38c902e 100644 --- a/src/director/doveadm-connection.c +++ b/src/director/doveadm-connection.c @@ -520,7 +520,7 @@ doveadm_cmd_host_reset_users(struct doveadm_connection *conn, } for (i = 0; i < count; i++) { - if (net_ip_compare(&hosts[i]->ip, &ip) == 0) + if (net_ip_compare(&hosts[i]->ip, &ip)) break; } if (i == count) {