commit dc9fc68: [Fix] Fix disabling of the actions

Vsevolod Stakhov vsevolod at highsecure.ru
Sun Aug 18 09:00:04 UTC 2019


Author: Vsevolod Stakhov
Date: 2019-08-18 09:39:14 +0100
URL: https://github.com/rspamd/rspamd/commit/dc9fc682044bdc99a8c1a3db5912bd092349e81a

[Fix] Fix disabling of the actions

---
 src/libserver/cfg_utils.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

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


More information about the Commits mailing list