]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix parsing of options for workers with the same type
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Apr 2017 14:02:06 +0000 (15:02 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Tue, 4 Apr 2017 14:02:06 +0000 (15:02 +0100)
src/libserver/cfg_rcl.c

index 8ed9350206cfd8680cc9132a73b6e670b3fc07ce..e4a528e8de31b91fdbec06112e4c49bf1cf00beb 100644 (file)
@@ -655,7 +655,7 @@ rspamd_rcl_worker_handler (rspamd_mempool_t *pool, const ucl_object_t *obj,
        if (wparser != NULL && obj->type == UCL_OBJECT) {
                it = ucl_object_iterate_new (obj);
 
-               while ((cur = ucl_object_iterate_safe (it, true)) != NULL) {
+               while ((cur = ucl_object_iterate_full (it, UCL_ITERATE_EXPLICIT)) != NULL) {
                        srch.name = ucl_object_key (cur);
                        srch.ptr = wrk->ctx; /* XXX: is it valid? */
                        whandler = g_hash_table_lookup (wparser->parsers, &srch);