commit 3137892: Fix disabling symbols
Jean-Louis Dupond
jean-louis at dupond.be
Tue Nov 30 14:00:04 UTC 2021
Author: Jean-Louis Dupond
Date: 2021-11-29 15:53:47 +0100
URL: https://github.com/rspamd/rspamd/commit/3137892690987a658b59073c86b4b1d9bdf5305e (refs/pull/3998/head)
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;
}
}
More information about the Commits
mailing list