From 5943c6f2e3165eb8ac3ed90a0639884885379fb0 Mon Sep 17 00:00:00 2001 From: "W.C.A. Wijngaards" Date: Mon, 15 Feb 2021 14:57:29 +0100 Subject: [PATCH] - Fix to make tests work with support indicators set for iterator. --- doc/Changelog | 1 + iterator/iter_utils.c | 2 ++ 2 files changed, 3 insertions(+) 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) -- 2.47.2