diff options
author | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-09-24 13:03:55 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@rspamd.com> | 2022-09-24 13:03:55 +0100 |
commit | a8532008233d2e23dc57e4f5b358704cea3f8a1b (patch) | |
tree | d90136b70e72fbd7a3250a0668536a6c6fc8b878 /src/lua/lua_tcp.c | |
parent | 8916bc1b2d2d6e7a12a38b572d5bad8972650080 (diff) | |
download | rspamd-a8532008233d2e23dc57e4f5b358704cea3f8a1b.tar.gz rspamd-a8532008233d2e23dc57e4f5b358704cea3f8a1b.zip |
[Minor] Partially restore reverted patch
Diffstat (limited to 'src/lua/lua_tcp.c')
-rw-r--r-- | src/lua/lua_tcp.c | 1 |
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); |