]> git.ipfire.org Git - thirdparty/dovecot/core.git/commit
quota: Avoid crash in quota_root_iter_init() if mailbox has no quota enabled.
authorTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2015 09:33:33 +0000 (12:33 +0300)
committerTimo Sirainen <tss@iki.fi>
Mon, 28 Sep 2015 09:33:33 +0000 (12:33 +0300)
commit169b679209f7b3e97888704ad3693c709265ef24
tree277313ad5516624099bd41ae37fc7ccd2f0e5048
parentf39a06c378f6ea80a4ae9d257f0d79221a945a57
quota: Avoid crash in quota_root_iter_init() if mailbox has no quota enabled.
This allows quota_get_mail_user_quota() to be called even when quota doesn't
exist. Cleaned up all the code using it to now check for the NULL result.

This fixes a crash in quota_clone plugin.
src/plugins/quota/quota-storage.c
src/plugins/quota/quota.c