diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-17 11:51:10 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2018-09-17 11:51:10 +0100 |
commit | 5cd10b421b5989b118d52e399ba5b191991c506e (patch) | |
tree | 35582a1b92a8e7c2e280af14eb4efacccb976800 /src/libserver/re_cache.c | |
parent | 954727f41c7ed5449206f035d4015d30b6c92f13 (diff) | |
download | rspamd-5cd10b421b5989b118d52e399ba5b191991c506e.tar.gz rspamd-5cd10b421b5989b118d52e399ba5b191991c506e.zip |
[Minor] Fixes to regexp selectors
Diffstat (limited to 'src/libserver/re_cache.c')
-rw-r--r-- | src/libserver/re_cache.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/re_cache.c b/src/libserver/re_cache.c index c438b6c61..707d220ce 100644 --- a/src/libserver/re_cache.c +++ b/src/libserver/re_cache.c @@ -831,7 +831,7 @@ rspamd_re_cache_process_selector (struct rspamd_task *task, lua_pushcfunction (L, &rspamd_lua_traceback); err_idx = lua_gettop (L); - lua_pushvalue (L, ref); + lua_rawgeti (L, LUA_REGISTRYINDEX, ref); ptask = lua_newuserdata (L, sizeof (*ptask)); *ptask = task; rspamd_lua_setclass (L, "rspamd{task}", -1); |