]> git.ipfire.org Git - people/ms/dnsmasq.git/commit - src/dnsmasq.h
Fix bug when resulted in NXDOMAIN answers instead of NODATA.
authorSimon Kelley <simon@thekelleys.org.uk>
Thu, 18 Sep 2014 20:48:51 +0000 (21:48 +0100)
committerSimon Kelley <simon@thekelleys.org.uk>
Thu, 18 Sep 2014 20:55:27 +0000 (21:55 +0100)
commit288df49c96bb736a0cce203c7cbf7a1408dc99d6
treeeb05a5ec6da14c6479910fef987cdfc4c3dcde5a
parent10cfc0ddb35d8e7d19bdb86240a49004980b1ff8
Fix bug when resulted in NXDOMAIN answers instead of NODATA.

check_for_local_domain() was broken due to new code matching F_*
bits in cache entries for DNSSEC. Because F_DNSKEY | F_DS is
used to match RRSIG entries, cache_find_by_name() insists on an exact match
of those bits. So adding F_DS to the bits that check_for_local_domain()
sends to cache_find_by_name() won't result in DS records as well
as the others, it results in only DS records. Add a new bit, F_NSIGMATCH
which suitably changes the behaviour of cache_find_by_name().
CHANGELOG
src/cache.c
src/dnsmasq.h
src/rfc1035.c