From: Vsevolod Stakhov Date: Thu, 17 Mar 2016 10:14:30 +0000 (+0000) Subject: [Fix] Allocate ids array in case of hyperscan X-Git-Tag: 1.2.0~24 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=093a54c33ddbd35a1d3291b6742d651074c23019;p=rspamd.git [Fix] Allocate ids array in case of hyperscan --- diff --git a/src/libutil/map.c b/src/libutil/map.c index ffb426ea0..b40d27bd0 100644 --- a/src/libutil/map.c +++ b/src/libutil/map.c @@ -1551,6 +1551,7 @@ rspamd_re_map_finalize (struct rspamd_regexp_map *re_map) re_map->patterns = g_new (const gchar *, re_map->regexps->len); re_map->flags = g_new (gint, re_map->regexps->len); + re_map->ids = g_new (gint, re_map->regexps->len); for (i = 0; i < re_map->regexps->len; i ++) { re = g_ptr_array_index (re_map->regexps, i);