aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 13:33:45 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 13:33:45 +0100
commit35ec776cb0f5d39515fd6d9e0311aa85194ea079 (patch)
treefa42fc5438cf12b78a020731c743544ea2800d2f /src
parent033e0961e686f6ec9dc4a5cef9f9cfe3fa69a207 (diff)
downloadrspamd-35ec776cb0f5d39515fd6d9e0311aa85194ea079.tar.gz
rspamd-35ec776cb0f5d39515fd6d9e0311aa85194ea079.zip
Properly check for an end element in xml.
Diffstat (limited to 'src')
-rw-r--r--src/cfg_xml.c2
1 files changed, 1 insertions, 1 deletions
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 {