diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-02-12 12:31:54 +0000 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2014-02-12 12:31:54 +0000 |
commit | 1d28239b87fab8a06bdcb32f5a0f598ff0d406b6 (patch) | |
tree | c65bcf10bc6e9323387bd87bf5a1c128d6dab0b3 /src/cfg_rcl.c | |
parent | 52466776c6d731372f0fd6b3bf73564071c42414 (diff) | |
download | rspamd-1d28239b87fab8a06bdcb32f5a0f598ff0d406b6.tar.gz rspamd-1d28239b87fab8a06bdcb32f5a0f598ff0d406b6.zip |
Fix nameservers setup.
Diffstat (limited to 'src/cfg_rcl.c')
-rw-r--r-- | src/cfg_rcl.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cfg_rcl.c b/src/cfg_rcl.c index be60c335c..5793b5010 100644 --- a/src/cfg_rcl.c +++ b/src/cfg_rcl.c @@ -1434,6 +1434,7 @@ rspamd_rcl_parse_struct_string_list (struct config_file *cfg, ucl_object_t *obj, gchar *val; ucl_object_t *cur; const gsize num_str_len = 32; + ucl_object_iter_t iter = NULL; target = (GList **)(((gchar *)pd->user_struct) + pd->offset); @@ -1442,10 +1443,10 @@ rspamd_rcl_parse_struct_string_list (struct config_file *cfg, ucl_object_t *obj, return FALSE; } - for (cur = obj; cur != NULL; cur = cur->next) { + while ((cur = ucl_iterate_object (obj, &iter, true)) != NULL) { switch (cur->type) { case UCL_STRING: - val = memory_pool_strdup (cfg->cfg_pool, ucl_copy_value_trash (obj)); + val = memory_pool_strdup (cfg->cfg_pool, ucl_copy_value_trash (cur)); break; case UCL_INT: val = memory_pool_alloc (cfg->cfg_pool, num_str_len); |