dovecot-1.1: Don't crash if FTS backend initialization fails.

dovecot at dovecot.org dovecot at dovecot.org
Sun Feb 17 00:16:05 EET 2008


details:   http://hg.dovecot.org/dovecot-1.1/rev/41bbf9edf7f8
changeset: 7262:41bbf9edf7f8
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Feb 17 00:16:39 2008 +0200
description:
Don't crash if FTS backend initialization fails.

diffstat:

1 file changed, 2 insertions(+)
src/plugins/fts/fts-api.c |    2 ++

diffs (12 lines):

diff -r e665ef583668 -r 41bbf9edf7f8 src/plugins/fts/fts-api.c
--- a/src/plugins/fts/fts-api.c	Sat Feb 16 22:14:13 2008 +0200
+++ b/src/plugins/fts/fts-api.c	Sun Feb 17 00:16:39 2008 +0200
@@ -61,6 +61,8 @@ fts_backend_init(const char *backend_nam
 	}
 
 	backend = be->v.init(box);
+	if (backend == NULL)
+		return NULL;
 	backend->box = box;
 	return backend;
 }


More information about the dovecot-cvs mailing list