git: b4f7886cf003 - 2023Q1 - dns/unbound: fix build with AAAA option ON

From: Fernando Apesteguía <fernape_at_FreeBSD.org>
Date: Tue, 07 Feb 2023 15:32:41 UTC
The branch 2023Q1 has been updated by fernape:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b4f7886cf0032d73980c1cb49e9c7beb0da0a92c

commit b4f7886cf0032d73980c1cb49e9c7beb0da0a92c
Author:     Jaap Akkerhuis <jaap@NLnetLabs.nl>
AuthorDate: 2023-02-07 13:13:09 +0000
Commit:     Fernando Apesteguía <fernape@FreeBSD.org>
CommitDate: 2023-02-07 15:27:22 +0000

    dns/unbound: fix build with AAAA option ON
    
    PR:             269337
    Reported by:    void@f-m.fm
    MFH:            2023Q1 (build fix)
    
    (cherry picked from commit 2272e34787c3e6839841c0e4ea919b569dbb5cfc)
---
 dns/unbound/Makefile                                       |  3 ++-
 dns/unbound/files/patch-contrib_aaaa-filter-iterator.patch | 11 +++++++++++
 2 files changed, 13 insertions(+), 1 deletion(-)

diff --git a/dns/unbound/Makefile b/dns/unbound/Makefile
index 99733d2cd3c6..65c928650e36 100644
--- a/dns/unbound/Makefile
+++ b/dns/unbound/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	unbound
-DISTVERSION=	1.17.0
+DISTVERSION=	1.17.1
+PORTREVISION=	2
 CATEGORIES=	dns
 MASTER_SITES=	https://www.nlnetlabs.nl/downloads/unbound/
 
diff --git a/dns/unbound/files/patch-contrib_aaaa-filter-iterator.patch b/dns/unbound/files/patch-contrib_aaaa-filter-iterator.patch
new file mode 100644
index 000000000000..a885d2269e0b
--- /dev/null
+++ b/dns/unbound/files/patch-contrib_aaaa-filter-iterator.patch
@@ -0,0 +1,11 @@
+--- contrib/aaaa-filter-iterator.patch.orig	2023-02-06 14:22:58 UTC
++++ contrib/aaaa-filter-iterator.patch
+@@ -108,6 +108,8 @@ index 2482a1f4..bd5ba243 100644
+  	iter_env->supports_ipv6 = cfg->do_ip6;
+  	iter_env->supports_ipv4 = cfg->do_ip4;
+  	iter_env->outbound_msg_retry = cfg->outbound_msg_retry;
++ 	iter_env->max_sent_count = cfg->max_sent_count;
++ 	iter_env->max_query_restarts = cfg->max_query_restarts;
+ +	iter_env->aaaa_filter = cfg->aaaa_filter;
+  	return 1;
+  }