Skip to content
Snippets Groups Projects
Commit a1ef6659 authored by Stephan Bosch's avatar Stephan Bosch
Browse files

ManageSieve: fixed quota problem in previous change.

parent 7f428312
No related branches found
No related tags found
No related merge requests found
...@@ -311,7 +311,6 @@ static bool cmd_putscript_continue_parsing(struct client_command_context *cmd) ...@@ -311,7 +311,6 @@ static bool cmd_putscript_continue_parsing(struct client_command_context *cmd)
return cmd_putscript_cancel(ctx, TRUE); return cmd_putscript_cancel(ctx, TRUE);
} }
ctx->max_script_size = ctx->script_size;
} else { } else {
ctx->max_script_size = managesieve_quota_max_script_size(client); ctx->max_script_size = managesieve_quota_max_script_size(client);
} }
...@@ -343,7 +342,8 @@ static bool cmd_putscript_continue_script(struct client_command_context *cmd) ...@@ -343,7 +342,8 @@ static bool cmd_putscript_continue_script(struct client_command_context *cmd)
if (ctx->save_ctx != NULL) { if (ctx->save_ctx != NULL) {
while (ctx->script_size == 0 || ctx->input->v_offset != ctx->script_size) { while (ctx->script_size == 0 || ctx->input->v_offset != ctx->script_size) {
if ( ctx->input->v_offset > ctx->max_script_size ) { if ( ctx->max_script_size > 0 &&
ctx->input->v_offset > ctx->max_script_size ) {
(void)managesieve_quota_check_validsize(client, ctx->input->v_offset); (void)managesieve_quota_check_validsize(client, ctx->input->v_offset);
cmd_putscript_finish(ctx); cmd_putscript_finish(ctx);
return TRUE; return TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.