dovecot-1.2: IMAP: Fixed SORT command crashing.

dovecot at dovecot.org dovecot at dovecot.org
Wed Feb 25 21:26:31 EET 2009


details:   http://hg.dovecot.org/dovecot-1.2/rev/037ff603e27a
changeset: 8780:037ff603e27a
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Feb 25 14:25:50 2009 -0500
description:
IMAP: Fixed SORT command crashing.

diffstat:

1 file changed, 1 insertion(+), 1 deletion(-)
src/imap/imap-search.c |    2 +-

diffs (15 lines):

diff -r edd65639b63e -r 037ff603e27a src/imap/imap-search.c
--- a/src/imap/imap-search.c	Tue Feb 24 18:13:34 2009 -0500
+++ b/src/imap/imap-search.c	Wed Feb 25 14:25:50 2009 -0500
@@ -533,10 +533,10 @@ bool imap_search_start(struct imap_searc
 		client_enable(cmd->client, MAILBOX_FEATURE_CONDSTORE);
 	}
 
+	ctx->box = cmd->client->mailbox;
 	wanted_fields_get(ctx->box, sort_program,
 			  &wanted_fields, &wanted_headers);
 
-	ctx->box = cmd->client->mailbox;
 	ctx->trans = mailbox_transaction_begin(ctx->box, 0);
 	ctx->sargs = sargs;
 	ctx->search_ctx = mailbox_search_init(ctx->trans, sargs, sort_program);


More information about the dovecot-cvs mailing list