dovecot-2.2: layout=index: Don't crash on mailbox_update() if th...
dovecot at dovecot.org
dovecot at dovecot.org
Fri Apr 5 12:27:06 EEST 2013
details: http://hg.dovecot.org/dovecot-2.2/rev/9c3bf2cb62e8
changeset: 16203:9c3bf2cb62e8
user: Timo Sirainen <tss at iki.fi>
date: Fri Apr 05 12:26:57 2013 +0300
description:
layout=index: Don't crash on mailbox_update() if the mailbox path couldn't be found.
diffstat:
src/lib-storage/list/mailbox-list-index-backend.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r 831351968d3a -r 9c3bf2cb62e8 src/lib-storage/list/mailbox-list-index-backend.c
--- a/src/lib-storage/list/mailbox-list-index-backend.c Fri Apr 05 12:25:29 2013 +0300
+++ b/src/lib-storage/list/mailbox-list-index-backend.c Fri Apr 05 12:26:57 2013 +0300
@@ -337,7 +337,7 @@
return -1;
/* rename the directory */
- if (!guid_128_is_empty(update->mailbox_guid) &&
+ if (!guid_128_is_empty(update->mailbox_guid) && old_path != NULL &&
mailbox_list_set_get_root_path(&box->list->set,
MAILBOX_LIST_PATH_TYPE_MAILBOX,
&root_dir)) {
More information about the dovecot-cvs
mailing list