From: Vsevolod Stakhov Date: Thu, 17 Mar 2016 10:14:48 +0000 (+0000) Subject: [Minor] Fix loading of regexp maps X-Git-Tag: 1.2.0~23 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6f6375852ffcd4760925bdc5a540ff23e6d1729a;p=rspamd.git [Minor] Fix loading of regexp maps --- 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,