From: Jean-Louis Dupond Date: Mon, 29 Nov 2021 14:53:47 +0000 (+0100) Subject: Fix disabling symbols X-Git-Tag: 3.2~212^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F3998%2Fhead;p=rspamd.git 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. --- 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; } }