From: Timo Sirainen Date: Mon, 28 Sep 2015 13:37:37 +0000 (+0300) Subject: quota: Fix to previous commit - counting quota-disabled-storages may have returned... X-Git-Tag: 2.2.19.rc2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9d44feefe824e808fce433edd5a7a3b20c6f4b58;p=thirdparty%2Fdovecot%2Fcore.git quota: Fix to previous commit - counting quota-disabled-storages may have returned random failures. --- diff --git a/src/plugins/quota/quota-count.c b/src/plugins/quota/quota-count.c index a7a402bddf..103c6714fe 100644 --- a/src/plugins/quota/quota-count.c +++ b/src/plugins/quota/quota-count.c @@ -36,6 +36,7 @@ quota_count_mailbox(struct quota_root *root, struct mail_namespace *ns, box = mailbox_alloc(ns->list, vname, MAILBOX_FLAG_READONLY); if ((box->storage->class_flags & MAIL_STORAGE_CLASS_FLAG_NOQUOTA) != 0) { /* quota doesn't exist for this mailbox/storage */ + ret = 0; } else if (mailbox_get_metadata(box, root->quota->set->vsizes ? MAILBOX_METADATA_VIRTUAL_SIZE : MAILBOX_METADATA_PHYSICAL_SIZE,