dovecot-2.2: fts: Do not deinit uncreated fts context

dovecot at dovecot.org dovecot at dovecot.org
Wed Apr 29 08:36:13 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/1081d57b524e
changeset: 18492:1081d57b524e
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Apr 29 10:34:33 2015 +0200
description:
fts: Do not deinit uncreated fts context
Fixes crash with fts-lucene and fts-solr when lib-fts wasn't used.
Patch by Teemu Huovila

diffstat:

 src/plugins/fts/fts-user.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (11 lines):

diff -r 8898c5ea38f2 -r 1081d57b524e src/plugins/fts/fts-user.c
--- a/src/plugins/fts/fts-user.c	Wed Apr 29 10:27:50 2015 +0200
+++ b/src/plugins/fts/fts-user.c	Wed Apr 29 10:34:33 2015 +0200
@@ -212,5 +212,6 @@
 {
 	struct fts_user *fuser = FTS_USER_CONTEXT(user);
 
-	fts_user_free(fuser);
+	if (fuser != NULL)
+		fts_user_free(fuser);
 }


More information about the dovecot-cvs mailing list