diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-18 09:39:14 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2019-08-18 09:39:14 +0100 |
commit | dc9fc682044bdc99a8c1a3db5912bd092349e81a (patch) | |
tree | 96fae32b1c0b05af8d9adc5cb48b96fb93bc4816 /src/libserver/cfg_utils.c | |
parent | cb2284917bc94c5033ed12f3789bdf8611cec6de (diff) | |
download | rspamd-dc9fc682044bdc99a8c1a3db5912bd092349e81a.tar.gz rspamd-dc9fc682044bdc99a8c1a3db5912bd092349e81a.zip |
[Fix] Fix disabling of the actions
Diffstat (limited to 'src/libserver/cfg_utils.c')
-rw-r--r-- | src/libserver/cfg_utils.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c index f2234f1ed..8bbfd43e0 100644 --- a/src/libserver/cfg_utils.c +++ b/src/libserver/cfg_utils.c @@ -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; } |