From: Vsevolod Stakhov Date: Mon, 30 Sep 2019 12:22:05 +0000 (+0100) Subject: [Minor] Oops, fix unref logic X-Git-Tag: 2.0~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=4895d62cd9d69476df343f4588f8747143c783f1;p=rspamd.git [Minor] Oops, fix unref logic --- 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);