]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
director: Fix HOST-RESET-USERS with host parameter.
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 25 Oct 2016 18:20:54 +0000 (21:20 +0300)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Tue, 25 Oct 2016 20:00:20 +0000 (23:00 +0300)
The logic was reversed: It should flush the specified host, not some other
host. Broken by 11ee3b40320a31669bd717fecbe1e332dad4fd84

src/director/doveadm-connection.c

index f2e652664c37774c2dfd6eac3913e6af66ced739..5de38c902e0703ded4abcbdb5dd3653e16031baa 100644 (file)
@@ -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) {