aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 13:25:18 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2013-10-26 13:25:18 +0100
commitfa09e693be45f06c8d3d309459b3e37620296641 (patch)
treea65f837bf28b7eff26890fbb93fee1c16df98816 /src
parentabb2091e00e5d07a9a2393e4ef1b281efee3f47a (diff)
downloadrspamd-fa09e693be45f06c8d3d309459b3e37620296641.tar.gz
rspamd-fa09e693be45f06c8d3d309459b3e37620296641.zip
Zero xml parser userdata before using.
Diffstat (limited to 'src')
-rw-r--r--src/cfg_utils.c1
1 files changed, 1 insertions, 0 deletions
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);