diff options
Diffstat (limited to 'src/lua/lua_redis.c')
-rw-r--r-- | src/lua/lua_redis.c | 4 |
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); |