commit a853200: [Minor] Partially restore reverted patch

Vsevolod Stakhov vsevolod at rspamd.com
Sat Sep 24 19:07:05 UTC 2022


Author: Vsevolod Stakhov
Date: 2022-09-24 13:03:55 +0100
URL: https://github.com/rspamd/rspamd/commit/a8532008233d2e23dc57e4f5b358704cea3f8a1b

[Minor] Partially restore reverted patch

---
 src/lua/lua_tcp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lua/lua_tcp.c b/src/lua/lua_tcp.c
index 70e959690..73b2c9ae2 100644
--- a/src/lua/lua_tcp.c
+++ b/src/lua/lua_tcp.c
@@ -2069,6 +2069,7 @@ lua_tcp_connect_sync (lua_State *L)
 
 			if (!rspamd_dns_resolver_request_task (task, lua_tcp_dns_handler, cbd,
 					RDNS_REQUEST_A, host)) {
+				cbd->item = NULL; /* We have not registered watcher */
 				lua_pushboolean (L, FALSE);
 				lua_pushliteral (L, "Failed to initiate dns request");
 				TCP_RELEASE (cbd);


More information about the Commits mailing list