]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
doveadm: Fixed double-free when using -F parameter
authorTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 22 Feb 2016 16:42:42 +0000 (18:42 +0200)
committerTimo Sirainen <timo.sirainen@dovecot.fi>
Mon, 22 Feb 2016 16:42:42 +0000 (18:42 +0200)
src/doveadm/doveadm-mail.c

index cec82ea3223982fe7a03e94800950b2be3842d13..c56aaf08ced236d8aac53662d9adeea536dc8d1c 100644 (file)
@@ -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);