From: Vsevolod Stakhov Date: Sat, 26 Oct 2013 12:25:18 +0000 (+0100) Subject: Zero xml parser userdata before using. X-Git-Tag: 0.6.0~112 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fa09e693be45f06c8d3d309459b3e37620296641;p=rspamd.git Zero xml parser userdata before using. --- diff --git a/src/cfg_utils.c b/src/cfg_utils.c index 49fb609ab..9e3ae4761 100644 --- a/src/cfg_utils.c +++ b/src/cfg_utils.c @@ -985,6 +985,7 @@ read_xml_config (struct config_file *cfg, const gchar *filename) close (fd); /* Prepare xml parser */ + memset (&ud, 0, sizeof (ud)); ud.cfg = cfg; ud.state = 0; ctx = g_markup_parse_context_new (&xml_parser, G_MARKUP_TREAT_CDATA_AS_TEXT, &ud, NULL);