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

dovecot at dovecot.org dovecot at dovecot.org
Wed Nov 16 19:39:50 EET 2011


details:   http://hg.dovecot.org/dovecot-2.1/rev/e5fb66051028
changeset: 13709:e5fb66051028
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 7559768b1491 -r e5fb66051028 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
@@ -136,7 +136,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