From: Timo Sirainen Date: Sun, 30 Nov 2008 13:49:42 +0000 (+0200) Subject: fts: Don't crash if using both X-TEXT-FAST and TEXT in the same query without substr... X-Git-Tag: 1.2.alpha5~50 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=663d4e0733c8dae3f49236cb8b50c195031f8ba9;p=thirdparty%2Fdovecot%2Fcore.git fts: Don't crash if using both X-TEXT-FAST and TEXT in the same query without substr fts. --HG-- branch : HEAD --- diff --git a/src/plugins/fts/fts-search.c b/src/plugins/fts/fts-search.c index eaa19c898a..a1948b8850 100644 --- a/src/plugins/fts/fts-search.c +++ b/src/plugins/fts/fts-search.c @@ -77,6 +77,8 @@ static int fts_search_lookup_arg(struct fts_search_context *fctx, (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 */