]> git.ipfire.org Git - thirdparty/dovecot/core.git/commitdiff
fts: Don't crash if using both X-TEXT-FAST and TEXT in the same query without substr...
authorTimo Sirainen <tss@iki.fi>
Sun, 30 Nov 2008 13:49:42 +0000 (15:49 +0200)
committerTimo Sirainen <tss@iki.fi>
Sun, 30 Nov 2008 13:49:42 +0000 (15:49 +0200)
--HG--
branch : HEAD

src/plugins/fts/fts-search.c

index eaa19c898a2ac22b3b4ceb955ca0513a30ec066b..a1948b8850c68ec25c19f13c8e604ce2f66c160e 100644 (file)
@@ -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 */