dovecot-2.0: lib-storage: Crashfix for "auto" driver in some sit...

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 16 19:42:26 EET 2011


details:   http://hg.dovecot.org/dovecot-2.0/rev/ac3669e24a99
changeset: 12968:ac3669e24a99
user:      Timo Sirainen <tss at iki.fi>
date:      Wed Nov 16 19:38:55 2011 +0200
description:
lib-storage: Crashfix for "auto" driver in some situations.

diffstat:

 src/lib-storage/mail-storage.c |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (13 lines):

diff -r ce08f9903c79 -r ac3669e24a99 src/lib-storage/mail-storage.c
--- a/src/lib-storage/mail-storage.c	Wed Nov 16 19:38:16 2011 +0200
+++ b/src/lib-storage/mail-storage.c	Wed Nov 16 19:38:55 2011 +0200
@@ -134,7 +134,8 @@
 		/* no mail_location, autodetect */
 	} else if (strcmp(driver, "auto") == 0) {
 		/* explicit autodetection with "auto" driver. */
-		if (*list_set->root_dir == '\0') {
+		if (list_set->root_dir != NULL &&
+		    *list_set->root_dir == '\0') {
 			/* handle the same as with driver=NULL */
 			list_set->root_dir = NULL;
 		}


More information about the dovecot-cvs mailing list