From: Vsevolod Stakhov Date: Sun, 18 Aug 2019 08:39:14 +0000 (+0100) Subject: [Fix] Fix disabling of the actions X-Git-Tag: 2.0~398 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dc9fc682044bdc99a8c1a3db5912bd092349e81a;p=rspamd.git [Fix] Fix disabling of the actions --- 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; }