]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
Properly check for an end element in xml.
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Oct 2013 12:33:45 +0000 (13:33 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Sat, 26 Oct 2013 12:33:45 +0000 (13:33 +0100)
src/cfg_xml.c

index f0ed5309dd7f4199a7dc89685bc259ced61cb4b1..ce83782534372b7a8089265795d37b3a838bd015 100644 (file)
@@ -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 {