]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Set ok flag on success
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 2 Jul 2022 12:40:31 +0000 (13:40 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 2 Jul 2022 12:40:31 +0000 (13:40 +0100)
src/lua/lua_http.c

index d7f8c74f430753e4a543466737ce78f4b0c68a8b..a53145c7c9db81c46867bf41f2ae004b9b18c114 100644 (file)
@@ -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);