diff --git a/unbound-1.8.2-dns64.patch b/unbound-1.8.2-dns64.patch new file mode 100644 index 0000000..e811a3c --- /dev/null +++ b/unbound-1.8.2-dns64.patch @@ -0,0 +1,13 @@ +diff --git a/dns64/dns64.c b/dns64/dns64.c +index 6c81192..77e6890 100644 +--- a/dns64/dns64.c ++++ b/dns64/dns64.c +@@ -925,7 +925,7 @@ dns64_inform_super(struct module_qstate* qstate, int id, + * successful or not. This lets the state machine terminate. + */ + if(!super_dq) { +- super_dq = (struct dns64_qstate*)regional_alloc(qstate->region, ++ super_dq = (struct dns64_qstate*)regional_alloc(super->region, + sizeof(*super_dq)); + super->minfo[id] = super_dq; + memset(super_dq, 0, sizeof(*super_dq)); diff --git a/unbound.spec b/unbound.spec index 778a85c..f6ca388 100644 --- a/unbound.spec +++ b/unbound.spec @@ -34,7 +34,7 @@ Summary: Validating, recursive, and caching DNS(SEC) resolver Name: unbound Version: 1.8.2 -Release: 1%{?extra_version:.%{extra_version}}%{?dist} +Release: 2%{?extra_version:.%{extra_version}}%{?dist} License: BSD Url: https://www.unbound.net/ Source: https://www.unbound.net/downloads/%{name}-%{version}%{?extra_version}.tar.gz @@ -55,6 +55,8 @@ Source15: unbound-anchor.timer Source16: unbound-munin.README Source17: unbound-anchor.service +Patch1: unbound-1.8.2-dns64.patch + BuildRequires: gcc, make BuildRequires: flex, openssl-devel BuildRequires: libevent-devel expat-devel @@ -149,6 +151,7 @@ Python 3 modules and extensions for unbound %setup -qcn %{pkgname} pushd %{pkgname} +%patch1 -p1 # only for snapshots # autoreconf -iv @@ -420,6 +423,9 @@ popd %attr(0644,root,root) %config %{_sysconfdir}/%{name}/root.key %changelog +* Mon Dec 10 2018 Paul Wouters - 1.8.2-2 +- Fix dns64 allocation in wrong region for returned internal queries. + * Tue Dec 04 2018 Paul Wouters - 1.8.2-1 - Updated to 1.8.2. - Enabled deny ANY query support and edns-tcp-keepalive