dovecot-2.1: lib-storage: mail_namespace_find_unalias() crashed ...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Sep 23 00:50:00 EEST 2011
details: http://hg.dovecot.org/dovecot-2.1/rev/ed97724884a2
changeset: 13547:ed97724884a2
user: Timo Sirainen <tss at iki.fi>
date: Fri Sep 23 00:49:51 2011 +0300
description:
lib-storage: mail_namespace_find_unalias() crashed when namespace wasn't found.
diffstat:
src/lib-storage/mail-namespace.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 46e90b44d378 -r ed97724884a2 src/lib-storage/mail-namespace.c
--- a/src/lib-storage/mail-namespace.c Fri Sep 23 00:46:19 2011 +0300
+++ b/src/lib-storage/mail-namespace.c Fri Sep 23 00:49:51 2011 +0300
@@ -588,7 +588,7 @@
const char *storage_name;
ns = mail_namespace_find(namespaces, *mailbox);
- if (ns->alias_for != NULL) {
+ if (ns != NULL && ns->alias_for != NULL) {
storage_name =
mailbox_list_get_storage_name(ns->list, *mailbox);
ns = ns->alias_for;
More information about the dovecot-cvs
mailing list