From 4895d62cd9d69476df343f4588f8747143c783f1 Mon Sep 17 00:00:00 2001 From: Vsevolod Stakhov Date: Mon, 30 Sep 2019 13:22:05 +0100 Subject: [PATCH] [Minor] Oops, fix unref logic --- src/libserver/dns.c | 2 -- src/lua/lua_dns_resolver.c | 1 - 2 files changed, 3 deletions(-) diff --git a/src/libserver/dns.c b/src/libserver/dns.c index a6a109b1c..08454c656 100644 --- a/src/libserver/dns.c +++ b/src/libserver/dns.c @@ -208,8 +208,6 @@ make_dns_request_task_common (struct rspamd_task *task, if (!forced && task->dns_requests >= task->cfg->dns_max_requests) { msg_info_task ("stop resolving on reaching %ud requests", task->dns_requests); - - return FALSE; } return TRUE; diff --git a/src/lua/lua_dns_resolver.c b/src/lua/lua_dns_resolver.c index 9c57a2c7e..75f7a3b6b 100644 --- a/src/lua/lua_dns_resolver.c +++ b/src/lua/lua_dns_resolver.c @@ -477,7 +477,6 @@ lua_dns_resolver_resolve_common (lua_State *L, if (ret) { cbdata->s = session; - if (item) { cbdata->item = item; rspamd_symcache_item_async_inc (task, item, M); -- 2.39.5