dovecot-2.2: quota: Don't crash at init if one of the namespaces...

dovecot at dovecot.org dovecot at dovecot.org
Sun Jun 24 20:57:39 EEST 2012


details:   http://hg.dovecot.org/dovecot-2.2/rev/046f03b33584
changeset: 14666:046f03b33584
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Jun 21 19:12:04 2012 +0300
description:
quota: Don't crash at init if one of the namespaces no root dir.

diffstat:

 src/plugins/quota/quota.c |  2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diffs (12 lines):

diff -r b13753851a07 -r 046f03b33584 src/plugins/quota/quota.c
--- a/src/plugins/quota/quota.c	Thu Jun 21 18:48:38 2012 +0300
+++ b/src/plugins/quota/quota.c	Thu Jun 21 19:12:04 2012 +0300
@@ -639,7 +639,7 @@
 		for (i = 0; i < count; i++) {
 			path2 = mailbox_list_get_path(namespaces[i]->list, NULL,
 				     	MAILBOX_LIST_PATH_TYPE_MAILBOX);
-			if (strcmp(path, path2) == 0) {
+			if (path2 != NULL && strcmp(path, path2) == 0) {
 				/* duplicate */
 				return;
 			}


More information about the dovecot-cvs mailing list