Mercurial > dovecot > core-2.2
changeset 13712:4bdfe947a0b2
lib-storage: Fixed error handling for mailbox_set_subscribed()
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 16 Nov 2011 19:48:01 +0200 |
parents | e0556ffd1527 |
children | 16024d03f66e |
files | src/lib-storage/mail-storage.c |
diffstat | 1 files changed, 5 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-storage/mail-storage.c Wed Nov 16 19:39:33 2011 +0200 +++ b/src/lib-storage/mail-storage.c Wed Nov 16 19:48:01 2011 +0200 @@ -1154,7 +1154,11 @@ list = ns->list; } - return mailbox_list_set_subscribed(list, subs_name, set); + if (mailbox_list_set_subscribed(list, subs_name, set) < 0) { + mail_storage_copy_list_error(box->storage, list); + return -1; + } + return 0; } struct mail_storage *mailbox_get_storage(const struct mailbox *box)