]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix check interface existence for support detection in remote lookup.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Feb 2022 14:24:40 +0000 (15:24 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Fri, 25 Feb 2022 14:24:40 +0000 (15:24 +0100)
Makefile.in
daemon/cachedump.c
doc/Changelog

index 8e55527a55491a9d8b7bcc94987e6c368e05d56a..0c223eb8d132fe7dd7c4064d4612e3dd4a5d9fe0 100644 (file)
@@ -1248,7 +1248,7 @@ cachedump.lo cachedump.o: $(srcdir)/daemon/cachedump.c config.h $(srcdir)/daemon
  $(srcdir)/util/regional.h $(srcdir)/util/net_help.h $(srcdir)/util/data/dname.h $(srcdir)/iterator/iterator.h \
  $(srcdir)/services/outbound_list.h $(srcdir)/iterator/iter_delegpt.h $(srcdir)/iterator/iter_utils.h \
  $(srcdir)/iterator/iter_resptype.h $(srcdir)/iterator/iter_fwd.h $(srcdir)/iterator/iter_hints.h \
- $(srcdir)/sldns/wire2str.h $(srcdir)/sldns/str2wire.h $(srcdir)/util/config_file.h
+ $(srcdir)/sldns/wire2str.h $(srcdir)/sldns/str2wire.h $(srcdir)/util/config_file.h $(srcdir)/services/outside_network.h
 daemon.lo daemon.o: $(srcdir)/daemon/daemon.c config.h $(srcdir)/daemon/daemon.h $(srcdir)/util/locks.h \
  $(srcdir)/util/log.h $(srcdir)/util/alloc.h $(srcdir)/services/modstack.h  \
   $(srcdir)/daemon/worker.h $(srcdir)/libunbound/worker.h \
index 8a8694c4291d2679f028f1cbcfcbb2d60077485e..b929f909bab289e26169b256d9c537482230648f 100644 (file)
@@ -47,6 +47,7 @@
 #include "services/cache/rrset.h"
 #include "services/cache/dns.h"
 #include "services/cache/infra.h"
+#include "services/outside_network.h"
 #include "util/data/msgreply.h"
 #include "util/regional.h"
 #include "util/net_help.h"
@@ -856,7 +857,8 @@ int print_deleg_lookup(RES* ssl, struct worker* worker, uint8_t* nm,
                }
                /* go up? */
                if(iter_dp_is_useless(&qinfo, BIT_RD, dp,
-                       worker->env.cfg->do_ip4, worker->env.cfg->do_ip6)) {
+                       (worker->env.cfg->do_ip4 && worker->back->num_ip4 != 0),
+                       (worker->env.cfg->do_ip6 && worker->back->num_ip6 != 0))) {
                        print_dp_main(ssl, dp, msg);
                        print_dp_details(ssl, worker, dp);
                        if(!ssl_printf(ssl, "cache delegation was "
index 8061c0217d5f8e7727d331dbefbc908b7242807b..e156b6d7cad0a60f0b6cd661001f7f2ecbfc3c7d 100644 (file)
@@ -2,6 +2,7 @@
        - Fix to detect that no IPv6 support means that IPv6 addresses are
          useless for delegation point lookups.
        - update Makefile dependencies.
+       - Fix check interface existence for support detection in remote lookup.
 
 18 February 2022: Wouter
        - Fix that address not available is squelched from the logs for