From d0c8549bc34d80c41fac2810aa74787e1104440e Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 2 Jul 2022 13:40:31 +0100 Subject: [PATCH] [Minor] Set ok flag on success --- src/lua/lua_http.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/lua/lua_http.c b/src/lua/lua_http.c index d7f8c74f4..a53145c7c 100644 --- a/src/lua/lua_http.c +++ b/src/lua/lua_http.c @@ -260,6 +260,10 @@ lua_http_finish_handler (struct rspamd_http_connection *conn, } lua_thread_pool_prepare_callback (cbd->cfg->lua_thread_pool, &lcbd); + if (cbd->up) { + rspamd_upstream_ok(cbd->up); + } + L = lcbd.L; lua_rawgeti (L, LUA_REGISTRYINDEX, cbd->cbref); -- 2.39.5