aboutsummaryrefslogtreecommitdiffstats
path: root/src/libserver/symbols_cache.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-12 16:45:01 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2017-05-12 16:45:01 +0100
commit8a1eb9cf212ca97822c86d48bc3f9735815dd320 (patch)
tree5718c9cb4c934b1fa0ccc297aea932ed22e804db /src/libserver/symbols_cache.c
parent6e392c55b2ded0ec4f1712879d9f7d74fbb0f623 (diff)
downloadrspamd-8a1eb9cf212ca97822c86d48bc3f9735815dd320.tar.gz
rspamd-8a1eb9cf212ca97822c86d48bc3f9735815dd320.zip
[Fix] Fix calling for peak functions
Diffstat (limited to 'src/libserver/symbols_cache.c')
-rw-r--r--src/libserver/symbols_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libserver/symbols_cache.c b/src/libserver/symbols_cache.c
index 51addf04f..8df440d1c 100644
--- a/src/libserver/symbols_cache.c
+++ b/src/libserver/symbols_cache.c
@@ -1918,7 +1918,7 @@ rspamd_symbols_cache_call_peak_cb (struct event_base *ev_base,
lua_State *L = cache->cfg->lua_state;
struct event_base **pbase;
- lua_pushvalue (L, cache->peak_cb);
+ lua_rawgeti (L, LUA_REGISTRYINDEX, cache->peak_cb);
pbase = lua_newuserdata (L, sizeof (*pbase));
*pbase = ev_base;
rspamd_lua_setclass (L, "rspamd{ev_base}", -1);