dovecot-2.2: lib-fs: Don't crash when trying to initialize nonex...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 28 01:44:58 EET 2012
details: http://hg.dovecot.org/dovecot-2.2/rev/aade5fa372a6
changeset: 15421:aade5fa372a6
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 28 01:44:53 2012 +0200
description:
lib-fs: Don't crash when trying to initialize nonexistent fs driver.
diffstat:
src/lib-fs/fs-api.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diffs (14 lines):
diff -r fee60a91d586 -r aade5fa372a6 src/lib-fs/fs-api.c
--- a/src/lib-fs/fs-api.c Wed Nov 28 01:43:24 2012 +0200
+++ b/src/lib-fs/fs-api.c Wed Nov 28 01:44:53 2012 +0200
@@ -83,8 +83,8 @@
module_dir_init(fs_modules);
module = module_dir_find(fs_modules, module_name);
- fs_class = module_get_symbol(module,
- t_strdup_printf("fs_class_%s", driver));
+ fs_class = module == NULL ? NULL :
+ module_get_symbol(module, t_strdup_printf("fs_class_%s", driver));
if (fs_class != NULL)
fs_class_register(fs_class);
More information about the dovecot-cvs
mailing list