aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_redis.c
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-26 17:09:58 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2018-10-26 17:09:58 +0100
commit856cb10ddaeb0db71dfe5bee6e700c3cf08f4fab (patch)
treeb9e3f68f643ed622d2321f9a8ce0ebdd529f9c1d /src/lua/lua_redis.c
parenta821e3c6d98648455e0f8968453a885a18d9ebc4 (diff)
downloadrspamd-856cb10ddaeb0db71dfe5bee6e700c3cf08f4fab.tar.gz
rspamd-856cb10ddaeb0db71dfe5bee6e700c3cf08f4fab.zip
[Minor] Various fixes around async events
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r--src/lua/lua_redis.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/lua/lua_redis.c b/src/lua/lua_redis.c
index be694a0e6..ecf97c459 100644
--- a/src/lua/lua_redis.c
+++ b/src/lua/lua_redis.c
@@ -282,6 +282,10 @@ lua_redis_push_error (const gchar *err,
/* Data is nil */
lua_pushnil (cbs.L);
+ if (ud->item) {
+ rspamd_symbols_cache_set_cur_item (ud->task, ud->item);
+ }
+
if (lua_pcall (cbs.L, 2, 0, 0) != 0) {
msg_info ("call to callback failed: %s", lua_tostring (cbs.L, -1));
lua_pop (cbs.L, 1);