From: Vsevolod Stakhov Date: Sat, 2 Jul 2022 12:40:31 +0000 (+0100) Subject: [Minor] Set ok flag on success X-Git-Tag: 3.3~150 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d0c8549bc34d80c41fac2810aa74787e1104440e;p=rspamd.git [Minor] Set ok flag on success --- 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);