summaryrefslogtreecommitdiffstats
path: root/src/libutil/map.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-17 10:14:30 +0000
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-03-17 10:14:30 +0000
commit093a54c33ddbd35a1d3291b6742d651074c23019 (patch)
treec2edd79bad0bbdbe08d0a3db0da4a0343a96c4d5 /src/libutil/map.c
parent3d8f5e0bf5647bd2a2300f4dae4bd6b76ca15cb8 (diff)
downloadrspamd-093a54c33ddbd35a1d3291b6742d651074c23019.tar.gz
rspamd-093a54c33ddbd35a1d3291b6742d651074c23019.zip
[Fix] Allocate ids array in case of hyperscan
Diffstat (limited to 'src/libutil/map.c')
-rw-r--r--src/libutil/map.c1
1 files changed, 1 insertions, 0 deletions
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);