From a8532008233d2e23dc57e4f5b358704cea3f8a1b Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Sat, 24 Sep 2022 13:03:55 +0100 Subject: [PATCH] [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); -- 2.39.5