From 3137892690987a658b59073c86b4b1d9bdf5305e Mon Sep 17 00:00:00 2001 From: Jean-Louis Dupond Date: Mon, 29 Nov 2021 15:53:47 +0100 Subject: [PATCH] Fix disabling symbols If enabled = false, then we should set RSPAMD_SYMBOL_FLAG_DISABLED. Now setting enabled = true sets RSPAMD_SYMBOL_FLAG_DISABLED. Which is incorrect. --- src/libserver/cfg_rcl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 465503141..aa50cbe42 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -539,7 +539,7 @@ rspamd_rcl_symbol_handler (rspamd_mempool_t *pool, const ucl_object_t *obj, return FALSE; } - if (ucl_object_toboolean (elt)) { + if (!ucl_object_toboolean (elt)) { flags |= RSPAMD_SYMBOL_FLAG_DISABLED; } } -- 2.39.5