aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-24 13:14:36 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2019-01-24 13:14:36 +0000
commit8dcb70a57fea8f6b37897da0e3edefa48b884cb7 (patch)
tree9e054aa21803992c7971b7208bce1c6e4dd603cb
parent9c23b08876a546e6de060a2b7820189f8acf813f (diff)
downloadrspamd-8dcb70a57fea8f6b37897da0e3edefa48b884cb7.tar.gz
rspamd-8dcb70a57fea8f6b37897da0e3edefa48b884cb7.zip
[Minor] Core: Fix crash when reading dynamic actions
-rw-r--r--src/libserver/cfg_utils.c2
1 files changed, 1 insertions, 1 deletions
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;