Skip to content

Commit

Permalink
[Fix] Fix disabling of the actions
Browse files Browse the repository at this point in the history
  • Loading branch information
vstakhov committed Aug 18, 2019
1 parent cb22849 commit dc9fc68
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/libserver/cfg_utils.c
Expand Up @@ -2089,7 +2089,9 @@ rspamd_config_maybe_disable_action (struct rspamd_config *cfg,
act->priority,
priority);

HASH_DEL (cfg->actions, act);
act->threshold = NAN;
act->priority = priority;
act->flags |= RSPAMD_ACTION_NO_THRESHOLD;

return TRUE;
}
Expand Down

0 comments on commit dc9fc68

Please sign in to comment.