Generalise RR-filtering code, for use with EDNS0.

This commit is contained in:
Simon Kelley
2015-12-15 17:25:21 +00:00
parent d64c81fff7
commit c2bcd1e183
6 changed files with 349 additions and 309 deletions

View File

@@ -662,7 +662,7 @@ static size_t process_reply(struct dns_header *header, time_t now, struct server
/* If the requestor didn't set the DO bit, don't return DNSSEC info. */
if (!do_bit)
n = filter_rrsigs(header, n);
n = rrfilter(header, n, 1);
#endif
/* do this after extract_addresses. Ensure NODATA reply and remove