Bug in quota_get_status

Franz Knipp franz at qnipp.com
Thu Jun 26 08:28:54 UTC 2014


Hi,

  the configuration option

lmtp_rcpt_check_quota = yes

didn't work, so I traced down the problem:

quota_get_status (quota_storage.c:89) calls quota_test_alloc
(quota.c:1352) with size = 0 bytes, which leads always to a FALSE result
in quota_is_over (quota.c:1305).

I've fixed the function quota_is_over by considering ctx->bytes_over and
ctx->count_over. See the included patch.

Kind regards,

Franz

-- 
Franz Knipp, +43 664 3980169
qnipp GmbH, Hauptstraße 54, 7064 Oslip, Österreich
http://qnipp.com   http://qnipp.com/qnipp.vcf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dovecot-2.2.13-quota_is_over.patch
Type: text/x-patch
Size: 611 bytes
Desc: not available
URL: <http://dovecot.org/pipermail/dovecot/attachments/20140626/47832624/attachment.bin>


More information about the dovecot mailing list