Browse Source

[Fix] Fix disabling of the actions

tags/2.0
Vsevolod Stakhov 4 years ago
parent
commit
dc9fc68204
1 changed files with 3 additions and 1 deletions
  1. 3
    1
      src/libserver/cfg_utils.c

+ 3
- 1
src/libserver/cfg_utils.c View File

@@ -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;
}

Loading…
Cancel
Save