]> git.ipfire.org Git - thirdparty/unbound.git/commitdiff
- Fix to make tests work with support indicators set for iterator.
authorW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 15 Feb 2021 13:57:29 +0000 (14:57 +0100)
committerW.C.A. Wijngaards <wouter@nlnetlabs.nl>
Mon, 15 Feb 2021 13:57:29 +0000 (14:57 +0100)
doc/Changelog
iterator/iter_utils.c

index b5dbba8a9b9194f6138b6bafd3ff8de03f42a313..9ad100145ce327a3918c25a64fd2473e8fff9b90 100644 (file)
@@ -1,6 +1,7 @@
 15 February 2021: Wouter
        - Fix #422: IPv6 fallback issues when IPv6 is not properly
          enabled/configured.
+       - Fix to make tests work with support indicators set for iterator.
 
 10 February 2021: Wouter
        - Merge PR #420 from dyunwei: DOH not responsing with
index 4edb1cfe67b767851fe2a4fe467f98cc559398c5..94fa18f63c7e9564bd8b07c994a37f664c230ffd 100644 (file)
@@ -1445,6 +1445,8 @@ void iterator_set_ip46_support(struct module_stack* mods,
        if(m == -1)
                return;
        ie = (struct iter_env*)env->modinfo[m];
+       if(outnet->pending == NULL)
+               return; /* we are in testbound, no rbtree for UDP */
        if(outnet->num_ip4 == 0)
                ie->supports_ipv4 = 0;
        if(outnet->num_ip6 == 0)