From: Vsevolod Stakhov Date: Mon, 16 May 2016 20:30:55 +0000 (+0200) Subject: [Fix] Initialize hash tables array to avoid crashes X-Git-Tag: 1.3.0~465 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ec3d176f79db1ae884263c36724812eb95b8a097;p=thirdparty%2Frspamd.git [Fix] Initialize hash tables array to avoid crashes --- diff --git a/src/plugins/surbl.c b/src/plugins/surbl.c index 87b8effa73..f49a69c8b9 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,