Skip to content

Commit

Permalink
doveadm director map: Fix checking if host parameter is required
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Feb 17, 2017
1 parent 87c56d0 commit 2b46706
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doveadm/doveadm-director.c
Expand Up @@ -333,7 +333,7 @@ static void cmd_director_map(struct doveadm_cmd_context *cctx)

ctx = cmd_director_init(cctx);

if ((ctx->hash_map && ctx->user_map) && ctx->host == NULL) {
if ((ctx->hash_map || ctx->user_map) && ctx->host == NULL) {
director_cmd_help(cctx->cmd);
return;
}
Expand Down

0 comments on commit 2b46706

Please sign in to comment.