dovecot-2.1: fs layout: Don't crash in mailbox listing if there ...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Jan 18 17:59:04 EET 2012
details: http://hg.dovecot.org/dovecot-2.1/rev/99ea6da7dc99
changeset: 13949:99ea6da7dc99
user: Timo Sirainen <tss at iki.fi>
date: Wed Jan 18 17:58:53 2012 +0200
description:
fs layout: Don't crash in mailbox listing if there are only invalid patterns.
diffstat:
src/lib-storage/list/mailbox-list-fs-iter.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 08cc9d2a79e6 -r 99ea6da7dc99 src/lib-storage/list/mailbox-list-fs-iter.c
--- a/src/lib-storage/list/mailbox-list-fs-iter.c Wed Jan 18 16:52:14 2012 +0200
+++ b/src/lib-storage/list/mailbox-list-fs-iter.c Wed Jan 18 17:58:53 2012 +0200
@@ -617,7 +617,7 @@
fs_list_next_root(ctx);
}
- if (!ctx->inbox_found &&
+ if (!ctx->inbox_found && ctx->ctx.glob != NULL &&
(ctx->ctx.list->ns->flags & NAMESPACE_FLAG_INBOX_ANY) != 0 &&
imap_match(ctx->ctx.glob,
fs_list_get_inbox_vname(ctx)) == IMAP_MATCH_YES) {
More information about the dovecot-cvs
mailing list