diff --git a/dnsmasq-2.80-rh1674067.patch b/dnsmasq-2.80-rh1674067.patch new file mode 100644 index 0000000..b1f23b0 --- /dev/null +++ b/dnsmasq-2.80-rh1674067.patch @@ -0,0 +1,31 @@ +From 162e5e0062ce923c494cc64282f293f0ed64fc10 Mon Sep 17 00:00:00 2001 +From: Sven Mueller +Date: Wed, 27 Feb 2019 21:17:37 +0000 +Subject: [PATCH] Fix bug added in 2.80 non-terminal code which returns NODATA + instead of NXDOMAIN. +MIME-Version: 1.0 +Content-Type: text/plain; charset=UTF-8 +Content-Transfer-Encoding: 8bit + +Thanks to Sven Muleller and Maciej Żenczykowski for work on this. + +https://bugzilla.redhat.com/show_bug.cgi?id=1674067 refers. +--- + src/cache.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/src/cache.c b/src/cache.c +index 906f5e1..44c13e4 100644 +--- a/src/cache.c ++++ b/src/cache.c +@@ -790,6 +790,7 @@ int cache_find_non_terminal(char *name, time_t now) + if (!is_outdated_cname_pointer(crecp) && + !is_expired(now, crecp) && + (crecp->flags & F_FORWARD) && ++ !(crecp->flags & F_NXDOMAIN) && + hostname_isequal(name, cache_get_name(crecp))) + return 1; + +-- +2.20.1 + diff --git a/dnsmasq.spec b/dnsmasq.spec index 7b8f180..b11d2d6 100644 --- a/dnsmasq.spec +++ b/dnsmasq.spec @@ -13,7 +13,7 @@ Name: dnsmasq Version: 2.80 -Release: 5%{?extraversion:.%{extraversion}}%{?dist} +Release: 6%{?extraversion:.%{extraversion}}%{?dist} Summary: A lightweight DHCP/caching DNS server License: GPLv2 or GPLv3 @@ -26,6 +26,8 @@ Source2: dnsmasq-systemd-sysusers.conf Patch1: dnsmasq-2.77-underflow.patch Patch3: dnsmasq-2.78-fips.patch Patch5: dnsmasq-2.79-randomize-ports.patch +# https://bugzilla.redhat.com/show_bug.cgi?id=1674067 +Patch6: dnsmasq-2.80-rh1674067.patch # This is workaround to nettle bug #1549190 # https://bugzilla.redhat.com/show_bug.cgi?id=1549190 @@ -158,6 +160,9 @@ install -Dpm 644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf %{_mandir}/man1/dhcp_* %changelog +* Wed Jul 24 2019 Petr Menšík - 2.80-6 +- Do not return NXDOMAIN on empty non-terminals (#1674067) + * Wed Jul 24 2019 Fedora Release Engineering - 2.80-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild