aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-16 22:30:55 +0200
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-16 22:30:55 +0200
commitec3d176f79db1ae884263c36724812eb95b8a097 (patch)
treebfa9cbfc4703c1971b538cbd7d316ac9884c7d70 /src
parent8215ede12147a104079b1c0b2fc77f2e0ed5a88b (diff)
downloadrspamd-ec3d176f79db1ae884263c36724812eb95b8a097.tar.gz
rspamd-ec3d176f79db1ae884263c36724812eb95b8a097.zip
[Fix] Initialize hash tables array to avoid crashes
Diffstat (limited to 'src')
-rw-r--r--src/plugins/surbl.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c
index 87b8effa7..f49a69c8b 100644
--- a/src/plugins/surbl.c
+++ b/src/plugins/surbl.c
@@ -121,7 +121,7 @@ read_exceptions_list (gchar * chunk,
gboolean final)
{
if (data->cur_data == NULL) {
- data->cur_data = g_malloc (sizeof (GHashTable *) * MAX_LEVELS);
+ data->cur_data = g_malloc0 (sizeof (GHashTable *) * MAX_LEVELS);
}
return rspamd_parse_kv_list (
chunk,