From: W.C.A. Wijngaards Date: Mon, 15 Feb 2021 13:57:29 +0000 (+0100) Subject: - Fix to make tests work with support indicators set for iterator. X-Git-Tag: release-1.13.2rc1~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5943c6f2e3165eb8ac3ed90a0639884885379fb0;p=thirdparty%2Funbound.git - Fix to make tests work with support indicators set for iterator. --- diff --git a/doc/Changelog b/doc/Changelog index b5dbba8a9..9ad100145 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -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 diff --git a/iterator/iter_utils.c b/iterator/iter_utils.c index 4edb1cfe6..94fa18f63 100644 --- a/iterator/iter_utils.c +++ b/iterator/iter_utils.c @@ -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)