Skip to content

Commit

Permalink
doveadm-mail: Initialize missing cmd context username
Browse files Browse the repository at this point in the history
Fixes assert-crash in doveadm_mail_single_user()
  • Loading branch information
cmouse authored and sirainen committed Mar 30, 2016
1 parent 0be3a0d commit c3ffcb7
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/doveadm/doveadm-mail.c
Expand Up @@ -966,6 +966,8 @@ doveadm_cmd_ver2_to_mail_cmd_wrapper(struct doveadm_cmd_context *cctx)
strchr(mctx->cur_username, '?') != NULL) {
wildcard_user = mctx->cur_username;
mctx->cur_username = NULL;
} else {
cctx->username = mctx->cur_username;
}
} else if (strcmp(arg->name, "user-file") == 0) {
mctx->service_flags |= MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP;
Expand Down

0 comments on commit c3ffcb7

Please sign in to comment.