Skip to content

Commit

Permalink
doveadm: Actually use resolved IP address(es) in director flush
Browse files Browse the repository at this point in the history
It left the IP variable unitialized which caused host parameter
to be left empty causing flush all. Flushing with IP address
was not affected.
  • Loading branch information
cmouse committed Aug 18, 2017
1 parent 9f24d61 commit 351233c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doveadm/doveadm-director.c
Expand Up @@ -716,6 +716,7 @@ static void cmd_director_flush(struct doveadm_cmd_context *cctx)

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));
Expand Down

0 comments on commit 351233c

Please sign in to comment.