changeset 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 6c3c0b26d0f7
children 52a725c67e83
files src/director/doveadm-connection.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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) {