aboutsummaryrefslogtreecommitdiffstats
path: root/src/lua
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@rspamd.com>2022-09-24 13:03:55 +0100
committerVsevolod Stakhov <vsevolod@rspamd.com>2022-09-24 13:03:55 +0100
commita8532008233d2e23dc57e4f5b358704cea3f8a1b (patch)
treed90136b70e72fbd7a3250a0668536a6c6fc8b878 /src/lua
parent8916bc1b2d2d6e7a12a38b572d5bad8972650080 (diff)
downloadrspamd-a8532008233d2e23dc57e4f5b358704cea3f8a1b.tar.gz
rspamd-a8532008233d2e23dc57e4f5b358704cea3f8a1b.zip
[Minor] Partially restore reverted patch
Diffstat (limited to 'src/lua')
-rw-r--r--src/lua/lua_tcp.c1
1 files changed, 1 insertions, 0 deletions
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);