]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Partially restore reverted patch
authorVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 24 Sep 2022 12:03:55 +0000 (13:03 +0100)
committerVsevolod Stakhov <vsevolod@rspamd.com>
Sat, 24 Sep 2022 12:03:55 +0000 (13:03 +0100)
src/lua/lua_tcp.c

index 70e959690a2cf0bf9ccd43a2bd1a7458573ce3af..73b2c9ae28b81ebf3e4f04951b3a233681cdb83e 100644 (file)
@@ -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);