From 35ec776cb0f5d39515fd6d9e0311aa85194ea079 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 26 Oct 2013 13:33:45 +0100 Subject: Properly check for an end element in xml. --- src/cfg_xml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/cfg_xml.c b/src/cfg_xml.c index f0ed5309d..ce8378253 100644 --- a/src/cfg_xml.c +++ b/src/cfg_xml.c @@ -1254,7 +1254,7 @@ rspamd_xml_end_element (GMarkupParseContext *context, const gchar *element_name, struct rspamd_xml_userdata *ud = user_data; - if (g_ascii_strcasecmp (ud->section_name[ud->nested], element_name) == 0) { + if (g_ascii_strcasecmp (ud->section_name[ud->nested - 1], element_name) == 0) { ud->nested --; } else { -- cgit v1.2.3