diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-16 22:30:55 +0200 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2016-05-16 22:30:55 +0200 |
commit | ec3d176f79db1ae884263c36724812eb95b8a097 (patch) | |
tree | bfa9cbfc4703c1971b538cbd7d316ac9884c7d70 /src | |
parent | 8215ede12147a104079b1c0b2fc77f2e0ed5a88b (diff) | |
download | rspamd-ec3d176f79db1ae884263c36724812eb95b8a097.tar.gz rspamd-ec3d176f79db1ae884263c36724812eb95b8a097.zip |
[Fix] Initialize hash tables array to avoid crashes
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/surbl.c | 2 |
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, |