From 6f6375852ffcd4760925bdc5a540ff23e6d1729a Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Thu, 17 Mar 2016 10:14:48 +0000 Subject: [PATCH] [Minor] Fix loading of regexp maps --- src/lua/lua_map.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lua/lua_map.c b/src/lua/lua_map.c index ed69db5fc..439ea2941 100644 --- a/src/lua/lua_map.c +++ b/src/lua/lua_map.c @@ -439,8 +439,8 @@ lua_config_add_map (lua_State *L) } else if (strcmp (type, "regexp") == 0) { map = rspamd_mempool_alloc0 (cfg->cfg_pool, sizeof (*map)); - map->data.radix = radix_create_compressed (); - map->type = RSPAMD_LUA_MAP_RADIX; + map->data.re_map = NULL; + map->type = RSPAMD_LUA_MAP_REGEXP; if ((m = rspamd_map_add (cfg, map_line, description, rspamd_regexp_list_read, -- 2.39.5