From: W.C.A. Wijngaards Date: Thu, 22 Oct 2020 07:26:27 +0000 (+0200) Subject: - Fix that minimal-responses does not remove addresses from a priming X-Git-Tag: release-1.13.0rc1~23 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4990dae87d6c28c8b2323d353ceca8489a3c4ca9;p=thirdparty%2Funbound.git - Fix that minimal-responses does not remove addresses from a priming query response. --- diff --git a/doc/Changelog b/doc/Changelog index 776643c46..1201081d2 100644 --- a/doc/Changelog +++ b/doc/Changelog @@ -1,6 +1,8 @@ 22 October 2020: Wouter - Fix #333: Unbound Segmentation Fault w/ log_info Functions From Python Mod. + - Fix that minimal-responses does not remove addresses from a priming + query response. 21 October 2020: George - Fix #327: net/if.h check fails on some darwin versions; contribution by diff --git a/util/data/msgencode.c b/util/data/msgencode.c index be69f628a..1746cfbb8 100644 --- a/util/data/msgencode.c +++ b/util/data/msgencode.c @@ -624,6 +624,9 @@ positive_answer(struct reply_info* rep, uint16_t qtype) { for(i=0;ian_numrrsets; i++) { if(ntohs(rep->rrsets[i]->rk.type) == qtype) { + /* for priming queries, type NS, include addresses */ + if(qtype == LDNS_RR_TYPE_NS) + return 0; /* in case it is a wildcard with DNSSEC, there will * be NSEC/NSEC3 records in the authority section * that we cannot remove */