dovecot: Don't crash if FTS backend initialization fails.
dovecot at dovecot.org
dovecot at dovecot.org
Sun Feb 17 00:16:09 EET 2008
details: http://hg.dovecot.org/dovecot/rev/9014a3cc5d39
changeset: 7259:9014a3cc5d39
user: Timo Sirainen <tss at iki.fi>
date: Sun Feb 17 00:16:37 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 27e714c659d6 -r 9014a3cc5d39 src/plugins/fts/fts-api.c
--- a/src/plugins/fts/fts-api.c Sat Feb 16 22:14:11 2008 +0200
+++ b/src/plugins/fts/fts-api.c Sun Feb 17 00:16:37 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