Skip to content

Commit

Permalink
doveadm: Fixed double-free when using -F parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sirainen committed Feb 22, 2016
1 parent f8e3a08 commit bce90a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/doveadm/doveadm-mail.c
Expand Up @@ -925,6 +925,7 @@ doveadm_cmd_ver2_to_mail_cmd_wrapper(const struct doveadm_cmd_ver2* cmd,
ctx->service_flags |= MAIL_STORAGE_SERVICE_FLAG_USERDB_LOOKUP;
wildcard_user = "*";
ctx->users_list_input = argv[i].value.v_istream;
i_stream_ref(ctx->users_list_input);
} else if (ctx->v.parse_arg != NULL && argv[i].short_opt != '\0') {
optarg = (char*)argv[i].value.v_string;
ctx->v.parse_arg(ctx, argv[i].short_opt);
Expand Down

0 comments on commit bce90a4

Please sign in to comment.