dovecot-2.0: lib-storage: Don't crash if trying to use unknown s...

dovecot at dovecot.org dovecot at dovecot.org
Mon Aug 10 04:53:25 EEST 2009


details:   http://hg.dovecot.org/dovecot-2.0/rev/c2037505a66b
changeset: 9755:c2037505a66b
user:      Timo Sirainen <tss at iki.fi>
date:      Sun Aug 09 21:48:45 2009 -0400
description:
lib-storage: Don't crash if trying to use unknown storage class.

diffstat:

1 file changed, 1 insertion(+)
src/lib-storage/mail-storage.c |    1 +

diffs (11 lines):

diff -r b9ad5b841f7e -r c2037505a66b src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Sun Aug 09 17:55:43 2009 -0400
+++ b/src/lib-storage/mail-storage.c	Sun Aug 09 21:48:45 2009 -0400
@@ -125,6 +125,7 @@ mail_storage_get_class(struct mail_names
 		if (storage_class == NULL) {
 			*error_r = t_strdup_printf(
 				"Unknown mail storage driver %s", driver);
+			return NULL;
 		}
 		i_assert(list_set->root_dir != NULL);
 		storage_class->v.get_list_settings(ns, list_set);


More information about the dovecot-cvs mailing list