dovecot-2.2: doveadm fts lookup/expand: Don't assert-crash if ft...

dovecot at dovecot.org dovecot at dovecot.org
Fri Dec 4 11:27:48 UTC 2015


details:   http://hg.dovecot.org/dovecot-2.2/rev/1b32cd3b872c
changeset: 19460:1b32cd3b872c
user:      Timo Sirainen <tss at iki.fi>
date:      Fri Dec 04 13:27:28 2015 +0200
description:
doveadm fts lookup/expand: Don't assert-crash if fts isn't configured.

diffstat:

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

diffs (19 lines):

diff -r 6cb9889cc960 -r 1b32cd3b872c src/plugins/fts/doveadm-fts.c
--- a/src/plugins/fts/doveadm-fts.c	Fri Dec 04 12:29:12 2015 +0200
+++ b/src/plugins/fts/doveadm-fts.c	Fri Dec 04 13:27:28 2015 +0200
@@ -26,6 +26,7 @@
 	backend = fts_list_backend(info->ns->list);
 	if (backend == NULL) {
 		i_error("fts not enabled for %s", info->vname);
+		ctx->exit_code = EX_CONFIG;
 		return -1;
 	}
 
@@ -118,6 +119,7 @@
 	backend = fts_list_backend(ns->list);
 	if (backend == NULL) {
 		i_error("fts not enabled for INBOX");
+		ctx->exit_code = EX_CONFIG;
 		return -1;
 	}
 


More information about the dovecot-cvs mailing list