aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-30 12:01:11 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2016-05-30 12:01:11 +0100
commit10ba1f84ff47aa8b47a453c4b534bad638cd8dba (patch)
tree2593b74e4a64b0c8daa1896c8156cb9bbac7b983
parenta29d51b6374c1c8583def29cefdb693d2f7d5380 (diff)
downloadrspamd-10ba1f84ff47aa8b47a453c4b534bad638cd8dba.tar.gz
rspamd-10ba1f84ff47aa8b47a453c4b534bad638cd8dba.zip
[Fix] Fix adding maps from ucl
-rw-r--r--src/libutil/map.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libutil/map.c b/src/libutil/map.c
index d7f509325..86cd3e5ee 100644
--- a/src/libutil/map.c
+++ b/src/libutil/map.c
@@ -1328,6 +1328,11 @@ rspamd_map_add_from_ucl (struct rspamd_config *cfg,
}
}
+ rspamd_map_calculate_hash (map);
+ msg_info_map ("added map from ucl");
+
+ cfg->maps = g_list_prepend (cfg->maps, map);
+
return map;
err: