]> git.ipfire.org Git - thirdparty/rspamd.git/commitdiff
[Fix] Initialize hash tables array to avoid crashes
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 May 2016 20:30:55 +0000 (22:30 +0200)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 16 May 2016 20:30:55 +0000 (22:30 +0200)
src/plugins/surbl.c

index 87b8effa733c6f5b77903a7259870561d4c7bf3e..f49a69c8b90c3a91a80b27b18d62f2717fe021ec 100644 (file)
@@ -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,