From: Vsevolod Stakhov Date: Sat, 24 Sep 2022 12:03:55 +0000 (+0100) Subject: [Minor] Partially restore reverted patch X-Git-Tag: 3.3~11 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a8532008233d2e23dc57e4f5b358704cea3f8a1b;p=rspamd.git [Minor] Partially restore reverted patch --- 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);