aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-27 21:49:32 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-27 21:49:32 +0000
commit2206c2f9d17976cb3723b26240a02488ccbee88a (patch)
tree4dd3a88a7b97654960b2674bc0d120b64c21f52e
parentf4453c68aecb0f09b2cc8faf0abdd119fe7d1dd2 (diff)
downloadrspamd-2206c2f9d17976cb3723b26240a02488ccbee88a.tar.gz
rspamd-2206c2f9d17976cb3723b26240a02488ccbee88a.zip
Insert modules to rcl object properly.
-rw-r--r--src/cfg_xml.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/cfg_xml.c b/src/cfg_xml.c
index 7c019acff..ead80e4df 100644
--- a/src/cfg_xml.c
+++ b/src/cfg_xml.c
@@ -920,6 +920,14 @@ rspamd_xml_start_element (GMarkupParseContext *context, const gchar *element_nam
ud->parent_pointer[0] = obj;
ud->nested ++;
}
+ else if (g_ascii_strcasecmp (element_name, "module") == 0 &&
+ extract_attr ("name", attribute_names, attribute_values, &res)) {
+ obj = ucl_object_new ();
+ obj->type = UCL_OBJECT;
+ ud->parent_pointer[0] = obj;
+ ud->cfg->rcl_obj = ucl_object_insert_key (ud->cfg->rcl_obj, obj, res, 0, true);
+ ud->nested ++;
+ }
else {
obj = ucl_object_new ();
obj->type = UCL_OBJECT;