]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Fix loading of regexp maps
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Mar 2016 10:14:48 +0000 (10:14 +0000)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Thu, 17 Mar 2016 10:14:48 +0000 (10:14 +0000)
src/lua/lua_map.c

index ed69db5fcc8ff6c50e5c55db1efd7963965e8c89..439ea2941f98a7426cf1bed4444d2f7ed5575bfb 100644 (file)
@@ -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,