dovecot-2.2: lib-storage: Search crashfix.
dovecot at dovecot.org
dovecot at dovecot.org
Mon Jul 16 16:59:56 EEST 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/4fb231804670
changeset: 14711:4fb231804670
user: Timo Sirainen <tss at iki.fi>
date: Mon Jul 16 16:59:51 2012 +0300
description:
lib-storage: Search crashfix.
diffstat:
src/lib-storage/index/index-search.c | 5 ++---
1 files changed, 2 insertions(+), 3 deletions(-)
diffs (20 lines):
diff -r 94fd1ec48e81 -r 4fb231804670 src/lib-storage/index/index-search.c
--- a/src/lib-storage/index/index-search.c Thu Jul 05 16:11:00 2012 +0300
+++ b/src/lib-storage/index/index-search.c Mon Jul 16 16:59:51 2012 +0300
@@ -151,14 +151,13 @@
static bool
index_search_get_pvt(struct index_search_context *ctx, uint32_t uid)
{
- if (ctx->pvt_uid == uid)
- return ctx->pvt_seq != 0;
-
if (ctx->box->view_pvt == NULL) {
/* no private view (set by view syncing) -> no private flags */
return FALSE;
}
+ if (ctx->pvt_uid == uid)
+ return ctx->pvt_seq != 0;
ctx->pvt_uid = uid;
return mail_index_lookup_seq(ctx->mail_ctx.transaction->view_pvt,
uid, &ctx->pvt_seq);
More information about the dovecot-cvs
mailing list