# HG changeset patch # User Aki Tuomi # Date 1503057517 -10800 # Node ID a7af9490a266c13eda79baa53aedf6c8bab7a768 # Parent ac432c1231039063c0dc330cbfd0742ad0098556 doveadm: Actually use resolved IP address(es) in director flush It left the IP variable unitialized which caused host parameter to be left empty causing flush all. Flushing with IP address was not affected. diff -r ac432c123103 -r a7af9490a266 src/doveadm/doveadm-director.c --- a/src/doveadm/doveadm-director.c Thu Aug 10 17:50:04 2017 +0300 +++ b/src/doveadm/doveadm-director.c Fri Aug 18 14:58:37 2017 +0300 @@ -701,6 +701,7 @@ cmd = t_str_new(64); for (i = 0; i < ips_count; i++) { + ip = ips[i]; str_truncate(cmd, 0); if (ctx->force_flush) str_printfa(cmd, "HOST-FLUSH\t%s\n", net_ip2addr(&ip));