commit 4895d62: [Minor] Oops, fix unref logic
Vsevolod Stakhov
vsevolod at highsecure.ru
Mon Sep 30 12:28:06 UTC 2019
Author: Vsevolod Stakhov
Date: 2019-09-30 13:22:05 +0100
URL: https://github.com/rspamd/rspamd/commit/4895d62cd9d69476df343f4588f8747143c783f1 (HEAD -> master)
[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);
More information about the Commits
mailing list