]> source.dussan.org Git - rspamd.git/commitdiff
[Minor] Oops, fix unref logic
authorVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2019 12:22:05 +0000 (13:22 +0100)
committerVsevolod Stakhov <vsevolod@highsecure.ru>
Mon, 30 Sep 2019 12:22:05 +0000 (13:22 +0100)
src/libserver/dns.c
src/lua/lua_dns_resolver.c

index a6a109b1c24e8f589a886acd810b4c600d6e85fc..08454c6563b132e539a2de9959a9588ee3dcb811 100644 (file)
@@ -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;
index 9c57a2c7e6a4bbf14e3e2a2b5f364c24f87268a2..75f7a3b6b98a2f2a44d43d463a53cc5fc1769961 100644 (file)
@@ -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);