diff options
author | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-20 16:32:23 +0400 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rambler-co.ru> | 2010-04-20 16:32:23 +0400 |
commit | 2d8eebcf7a0951d3d1189ddface7678fea76dd4c (patch) | |
tree | 7a1748e4d3633c3b8def3de8f2a08fb370c7e61d /src/cfg_xml.c | |
parent | d4b35de4315753629ac5b107968e6194eac85d24 (diff) | |
download | rspamd-2d8eebcf7a0951d3d1189ddface7678fea76dd4c.tar.gz rspamd-2d8eebcf7a0951d3d1189ddface7678fea76dd4c.zip |
* Bugfixes:
- handle '\' characters in lua strings correctly
- fix lua initialization
- avoid of using global lua state (global L)
- fix listen sockets hash to allow multiply workers of same type but on different listen sockets
- fix modules options inserting to allow multiply options of the same name
- fix parsing of lua options
- fix lua rules
Diffstat (limited to 'src/cfg_xml.c')
-rw-r--r-- | src/cfg_xml.c | 13 |
1 files changed, 1 insertions, 12 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c index 5e2cd9373..1fe9a9fd5 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -705,18 +705,7 @@ handle_module_opt (struct config_file *cfg, struct rspamd_xml_userdata *ctx, GHa } } cur_opt = ctx->section_pointer; - /* First try to find option with this name */ - while (cur_opt) { - cur = cur_opt->data; - if (strcmp (cur->param, name) == 0) { - /* cur->value is in pool */ - cur->value = data; - cur->is_lua = is_lua; - return TRUE; - } - cur_opt = g_list_next (cur_opt); - } - /* Not found, insert */ + /* Insert option */ cur = memory_pool_alloc0 (cfg->cfg_pool, sizeof (struct module_opt)); cur->param = name; cur->value = data; |