dovecot-1.2: fts: Don't crash if using both X-TEXT-FAST and TEXT...
dovecot at dovecot.org
dovecot at dovecot.org
Sun Nov 30 16:29:21 EET 2008
details: http://hg.dovecot.org/dovecot-1.2/rev/52f95ea3932b
changeset: 8506:52f95ea3932b
user: Timo Sirainen <tss at iki.fi>
date: Sun Nov 30 15:49:42 2008 +0200
description:
fts: Don't crash if using both X-TEXT-FAST and TEXT in the same query without substr fts.
diffstat:
1 file changed, 2 insertions(+)
src/plugins/fts/fts-search.c | 2 ++
diffs (12 lines):
diff -r 5cc1c4f3d38b -r 52f95ea3932b src/plugins/fts/fts-search.c
--- a/src/plugins/fts/fts-search.c Sun Nov 30 15:44:19 2008 +0200
+++ b/src/plugins/fts/fts-search.c Sun Nov 30 15:49:42 2008 +0200
@@ -77,6 +77,8 @@ static int fts_search_lookup_arg(struct
(arg->type == SEARCH_TEXT_FAST ||
arg->type == SEARCH_BODY_FAST) ?
fctx->fbox->backend_fast : fctx->fbox->backend_substr;
+ if (backend == NULL)
+ return 0;
break;
default:
/* can't filter this */
More information about the dovecot-cvs
mailing list