dovecot-2.1: shared: Allocate mailbox as fail_mailbox.

dovecot at dovecot.org dovecot at dovecot.org
Thu Feb 9 21:29:40 EET 2012


details:   http://hg.dovecot.org/dovecot-2.1/rev/a927b41bf699
changeset: 14109:a927b41bf699
user:      Timo Sirainen <tss at iki.fi>
date:      Thu Feb 09 21:29:25 2012 +0200
description:
shared: Allocate mailbox as fail_mailbox.
This fixes crashes when a mailbox is attempted to be allocated from the
shared namespace itself (e.g. the "shared" prefix).

diffstat:

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

diffs (20 lines):

diff -r 6a285db79b76 -r a927b41bf699 src/lib-storage/index/shared/shared-storage.c
--- a/src/lib-storage/index/shared/shared-storage.c	Thu Feb 09 21:28:44 2012 +0200
+++ b/src/lib-storage/index/shared/shared-storage.c	Thu Feb 09 21:29:25 2012 +0200
@@ -7,6 +7,7 @@
 #include "var-expand.h"
 #include "index-storage.h"
 #include "mailbox-list-private.h"
+#include "fail-mail-storage.h"
 #include "shared-storage.h"
 
 #include <stdlib.h>
@@ -334,7 +335,7 @@
 		NULL,
 		shared_storage_get_list_settings,
 		NULL,
-		NULL,
+		fail_mailbox_alloc,
 		NULL
 	}
 };


More information about the dovecot-cvs mailing list