diff --git a/unbound-1.8.3-dns64-again.patch b/unbound-1.8.3-dns64-again.patch new file mode 100644 index 0000000..1e66773 --- /dev/null +++ b/unbound-1.8.3-dns64-again.patch @@ -0,0 +1,11 @@ +diff -Naur dns64/dns64.c dns64/dns64.c +--- dns64/dns64.c 2018-12-11 04:46:02.000000000 -0500 ++++ dns64/dns64.c 2018-12-12 12:39:30.589057421 -0500 +@@ -628,6 +628,7 @@ + + /* Store the response in cache. */ + if ( (!iq || !iq->started_no_cache_store) && ++ qstate->return_msg && qstate->return_msg->rep && + !dns_cache_store(qstate->env, &qstate->qinfo, qstate->return_msg->rep, + 0, 0, 0, NULL, qstate->query_flags)) + log_err("out of memory"); diff --git a/unbound.spec b/unbound.spec index 14dfce2..a6776e6 100644 --- a/unbound.spec +++ b/unbound.spec @@ -34,7 +34,7 @@ Summary: Validating, recursive, and caching DNS(SEC) resolver Name: unbound Version: 1.8.3 -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.3-dns64-again.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 # only for snapshots # autoreconf -iv @@ -420,6 +423,9 @@ popd %attr(0644,root,root) %config %{_sysconfdir}/%{name}/root.key %changelog +* Wed Dec 12 2018 Paul Wouters - 1.8.3-2 +- Another dns64 fixup + * Wed Dec 12 2018 Paul Wouters - 1.8.3-1 - Updated to 1.8.3 with fixes the dns64 bug and has some other minor fixes