Mercurial > dovecot > core-2.2
diff src/director/doveadm-connection.c @ 20984:d3f2fc420d2b
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
author | Timo Sirainen <timo.sirainen@dovecot.fi> |
---|---|
date | Tue, 25 Oct 2016 21:20:54 +0300 |
parents | 39d96d2dad95 |
children | 410eacd7ad40 |
line wrap: on
line diff
--- a/src/director/doveadm-connection.c Tue Oct 25 01:03:05 2016 +0300 +++ b/src/director/doveadm-connection.c Tue Oct 25 21:20:54 2016 +0300 @@ -520,7 +520,7 @@ } 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) {