]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Core: Fix crash when reading dynamic actions
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 24 Jan 2019 13:14:36 +0000 (13:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 24 Jan 2019 13:14:36 +0000 (13:14 +0000)
src/libserver/cfg_utils.c

index d4b4e9075f7df549a8aea2c0a68cd17273fb8821..a854f45caea64a731e65afa922094fe4de15ada4 100644 (file)
@@ -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;