Displaying 2 results from an estimated 2 matches for "quota_user_context".
2010 Jun 22
1
quota_set leak
...If on the other hand you intended for quota_init to assume ownership of the quota_set, then the quota_settings_deinit call belongs in quota_deinit.
--- a/src/plugins/quota/quota-storage.c (beta6)
+++ b/src/plugins/quota/quota-storage.c (patched)
@@ -427,6 +427,7 @@
{
struct quota_user *quser = QUOTA_USER_CONTEXT(user);
+ quota_settings_deinit(&quser->quota->set);
quota_deinit(&quser->quota);
quser->module_ctx.super.deinit(user);
}
2013 Aug 01
1
[PATCH] quota-status: allow different action for messages that are too large (over maximum quota)
...ns/quota/quota-status.c 2013-08-01 18:03:30.000000000 +0200
@@ -46,13 +46,12 @@
}
static int
-quota_check(struct mail_user *user, uoff_t mail_size, const char **error_r)
+quota_check(struct mail_user *user, uoff_t mail_size, const char **error_r, bool *too_large)
{
struct quota_user *quser = QUOTA_USER_CONTEXT(user);
struct mail_namespace *ns;
struct mailbox *box;
struct quota_transaction_context *ctx;
- bool too_large;
int ret;
if (quser == NULL) {
@@ -64,7 +63,7 @@
box = mailbox_alloc(ns->list, "INBOX", 0);
ctx = quota_transaction_begin(box);
- ret = quota_test_alloc(ctx,...