aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua/lua_http.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_http.c
parenta821e3c6d98648455e0f8968453a885a18d9ebc4 (diff)
downloadrspamd-856cb10ddaeb0db71dfe5bee6e700c3cf08f4fab.tar.gz
rspamd-856cb10ddaeb0db71dfe5bee6e700c3cf08f4fab.zip
[Minor] Various fixes around async events
Diffstat (limited to 'src/lua/lua_http.c')
-rw-r--r--src/lua/lua_http.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c
index e8276e485..9da25bc71 100644
--- a/src/lua/lua_http.c
+++ b/src/lua/lua_http.c
@@ -177,6 +177,11 @@ lua_http_push_error (struct lua_http_cbdata *cbd, const char *err)
lua_rawgeti (L, LUA_REGISTRYINDEX, cbd->cbref);
lua_pushstring (L, err);
+
+ if (cbd->item) {
+ rspamd_symbols_cache_set_cur_item (cbd->task, cbd->item);
+ }
+
if (lua_pcall (L, 1, 0, 0) != 0) {
msg_info ("callback call failed: %s", lua_tostring (L, -1));
lua_pop (L, 1);