dovecot-2.2: imapc: Fixed assert-crash when listing INBOX and im...

dovecot at dovecot.org dovecot at dovecot.org
Tue Feb 4 18:22:57 EET 2014


details:   http://hg.dovecot.org/dovecot-2.2/rev/0b86bd67f1e4
changeset: 17128:0b86bd67f1e4
user:      Timo Sirainen <tss at iki.fi>
date:      Mon Feb 03 12:04:19 2014 -0500
description:
imapc: Fixed assert-crash when listing INBOX and imapc_list_prefix was set.

diffstat:

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

diffs (13 lines):

diff -r fbc8fe46dfce -r 0b86bd67f1e4 src/lib-storage/index/imapc/imapc-list.c
--- a/src/lib-storage/index/imapc/imapc-list.c	Mon Feb 03 11:50:49 2014 -0500
+++ b/src/lib-storage/index/imapc/imapc-list.c	Mon Feb 03 12:04:19 2014 -0500
@@ -493,7 +493,8 @@
 				      MAILBOX_LIST_ITER_RETURN_NO_FLAGS);
 	while ((info = mailbox_list_iter_next(iter)) != NULL) T_BEGIN {
 		vname = info->vname;
-		if (imapc_list_prefix_len > 0) {
+		if (imapc_list_prefix_len > 0 &&
+		    strcasecmp(vname, "INBOX") != 0) {
 			/* skip over the namespace prefix */
 			i_assert(strncmp(vname, fs_list->ns->prefix,
 					 fs_list->ns->prefix_len) == 0);


More information about the dovecot-cvs mailing list