aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJean-Louis Dupond <jean-louis@dupond.be>2021-11-29 15:53:47 +0100
committerJean-Louis Dupond <jean-louis@dupond.be>2021-11-29 15:53:47 +0100
commit3137892690987a658b59073c86b4b1d9bdf5305e (patch)
treea52b8f912eff58eb67097ec07b72e30e022963c3
parentd5131fcf2f9ceedbfdc8a5e28f663c15a1d8ffa7 (diff)
downloadrspamd-3137892690987a658b59073c86b4b1d9bdf5305e.tar.gz
rspamd-3137892690987a658b59073c86b4b1d9bdf5305e.zip
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.
-rw-r--r--src/libserver/cfg_rcl.c2
1 files changed, 1 insertions, 1 deletions
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;
}
}