diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-04 15:02:06 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2017-04-04 15:02:06 +0100 |
commit | 90f44e8ee59515936df340d5bace8ce68f515870 (patch) | |
tree | 9a6a0c00ffb7013ad9d69abcc25f133c8d69b5ee | |
parent | 6f1d2064568e8bd3840cd6300608f22c75c4ea80 (diff) | |
download | rspamd-90f44e8ee59515936df340d5bace8ce68f515870.tar.gz rspamd-90f44e8ee59515936df340d5bace8ce68f515870.zip |
[Fix] Fix parsing of options for workers with the same type
-rw-r--r-- | src/libserver/cfg_rcl.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/cfg_rcl.c b/src/libserver/cfg_rcl.c index 8ed935020..e4a528e8d 100644 --- a/src/libserver/cfg_rcl.c +++ b/src/libserver/cfg_rcl.c @@ -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); |