]> source.dussan.org Git - rspamd.git/commitdiff
[Fix] Fix adding maps from ucl
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 May 2016 11:01:11 +0000 (12:01 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 May 2016 11:01:11 +0000 (12:01 +0100)
src/libutil/map.c

index d7f509325ba30c19cd6e6a51dde62b295b68340d..86cd3e5ee6520a54f29938d6d1bbf2be18743bbb 100644 (file)
@@ -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: