]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
pop3: Don't crash in UIDL command.
authorTimo Sirainen <tss@iki.fi>
Sun, 7 Sep 2008 07:54:46 +0000 (10:54 +0300)
committerTimo Sirainen <tss@iki.fi>
Sun, 7 Sep 2008 07:54:46 +0000 (10:54 +0300)
--HG--
branch : HEAD

src/pop3/commands.c

index a0528f4a2246ffd15f0261af41f3d591c5577458..976cc227b2f90304a2486dab19ff62e9afc195ec 100644 (file)
@@ -503,8 +503,6 @@ struct cmd_uidl_context {
        struct mail_search_context *search_ctx;
        struct mail *mail;
        unsigned int message;
-
-       struct mail_search_arg search_arg;
 };
 
 static void pop3_get_uid(struct cmd_uidl_context *ctx,
@@ -601,7 +599,6 @@ static bool list_uids_iter(struct client *client, struct cmd_uidl_context *ctx)
 
        if (ctx->message == 0)
                client_send_line(client, ".");
-       array_free(&ctx->search_arg.value.seqset);
        i_free(ctx);
        return found;
 }