Skip to content

Commit

Permalink
doveadm director: Invalid parameters cause doveadm to fail silently.
Browse files Browse the repository at this point in the history
doveadm_cmd_context.cmd doesn't point directly to doveadm_cmd_director.
  • Loading branch information
sirainen authored and GitLab committed Oct 25, 2016
1 parent a9ade10 commit 3d76809
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/doveadm/doveadm-director.c
Expand Up @@ -992,9 +992,10 @@ static void director_cmd_help(const struct doveadm_cmd_ver2 *cmd)
unsigned int i;

for (i = 0; i < N_ELEMENTS(doveadm_cmd_director); i++) {
if (doveadm_cmd_director+i == cmd)
if (doveadm_cmd_director[i].cmd == cmd->cmd)
help_ver2(&doveadm_cmd_director[i]);
}
i_unreached();
}

void doveadm_register_director_commands(void)
Expand Down

0 comments on commit 3d76809

Please sign in to comment.