commit 8dcb70a: [Minor] Core: Fix crash when reading dynamic actions
Vsevolod Stakhov
vsevolod at highsecure.ru
Thu Jan 24 13:42:04 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-01-24 13:14:36 +0000
URL: https://github.com/rspamd/rspamd/commit/8dcb70a57fea8f6b37897da0e3edefa48b884cb7
[Minor] Core: Fix crash when reading dynamic actions
---
src/libserver/cfg_utils.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/libserver/cfg_utils.c b/src/libserver/cfg_utils.c
index d4b4e9075..a854f45ca 100644
--- a/src/libserver/cfg_utils.c
+++ b/src/libserver/cfg_utils.c
@@ -1907,7 +1907,7 @@ rspamd_config_action_from_ucl (struct rspamd_config *cfg,
threshold = ucl_object_todouble (elt);
}
- elt = ucl_object_lookup_any (obj, "flags");
+ elt = ucl_object_lookup (obj, "flags");
if (elt && ucl_object_type (elt) == UCL_ARRAY) {
const ucl_object_t *cur;
More information about the Commits
mailing list