From: Vsevolod Stakhov Date: Thu, 24 Jan 2019 13:14:36 +0000 (+0000) Subject: [Minor] Core: Fix crash when reading dynamic actions X-Git-Tag: 1.9.0~261 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=8dcb70a57fea8f6b37897da0e3edefa48b884cb7;p=rspamd.git [Minor] Core: Fix crash when reading dynamic actions --- 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;