]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix disabling of the actions
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Aug 2019 08:39:14 +0000 (09:39 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sun, 18 Aug 2019 08:39:14 +0000 (09:39 +0100)
src/libserver/cfg_utils.c

index f2234f1edb406e2c2a1fa1ad78a82f23a0169821..8bbfd43e0bf6ae6483551a97c123d722707848d9 100644 (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;
                }