mirror of
https://github.com/rspamd/rspamd.git
synced 2024-08-28 17:54:37 +02:00
Reverse a list of module options to preserve order.
This commit is contained in:
parent
7f6ebe1b29
commit
ffc3f67a0d
@ -2108,6 +2108,8 @@ rspamd_xml_end_element (GMarkupParseContext *context, const gchar *element_name,
|
||||
CHECK_TAG ("module", FALSE);
|
||||
if (res) {
|
||||
if (ud->section_pointer != NULL) {
|
||||
/* Reverse options list */
|
||||
ud->section_pointer = g_list_reverse ((GList *)ud->section_pointer);
|
||||
g_hash_table_insert (ud->cfg->modules_opts, ud->parent_pointer[0], ud->section_pointer);
|
||||
memory_pool_add_destructor (ud->cfg->cfg_pool, (pool_destruct_func)g_list_free, ud->section_pointer);
|
||||
ud->parent_pointer[0] = NULL;
|
||||
|
Loading…
Reference in New Issue
Block a user