aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/surbl.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-02 22:12:39 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-11-02 22:12:39 +0000
commitbbf9405abd6caff16f7680e2d8918c71579e2161 (patch)
tree2c834e6e1b35231d809d5d0edfc0f5af4410fecf /src/plugins/surbl.c
parentebaf611123e405af3fcf1f59aa542198bc5c95b3 (diff)
downloadrspamd-bbf9405abd6caff16f7680e2d8918c71579e2161.tar.gz
rspamd-bbf9405abd6caff16f7680e2d8918c71579e2161.zip
Sync with libucl.
Diffstat (limited to 'src/plugins/surbl.c')
-rw-r--r--src/plugins/surbl.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 5d49eccec..6430bf92f 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -303,7 +303,8 @@ surbl_module_config (struct config_file *cfg)
struct suffix_item *new_suffix, *cur_suffix = NULL;
struct surbl_bit_item *new_bit;
- ucl_object_t *value, *cur, *cur_rule, *tmp, *cur_bit;
+ ucl_object_t *value, *cur, *cur_rule, *cur_bit;
+ ucl_object_iter_t it = NULL;
const gchar *redir_val;
guint32 bit;
gint i, idx;
@@ -428,7 +429,7 @@ surbl_module_config (struct config_file *cfg)
}
cur = ucl_obj_get_key (cur_rule, "bits");
if (cur != NULL && cur->type == UCL_OBJECT) {
- HASH_ITER (hh, cur->value.ov, cur_bit, tmp) {
+ while ((cur_bit = ucl_iterate_object (cur, &it, true)) != NULL) {
if (ucl_object_key (cur_bit) != NULL && cur_bit->type == UCL_INT) {
bit = ucl_obj_toint (cur_bit);
new_bit = memory_pool_alloc (surbl_module_ctx->surbl_pool, sizeof (struct surbl_bit_item));