mirror of
https://github.com/NLnetLabs/unbound.git
synced 2025-12-23 00:00:51 -05:00
- Fix that minimal-responses does not remove addresses from a priming
query response.
This commit is contained in:
parent
ca39cfd6ae
commit
4990dae87d
2 changed files with 5 additions and 0 deletions
|
|
@ -1,6 +1,8 @@
|
||||||
22 October 2020: Wouter
|
22 October 2020: Wouter
|
||||||
- Fix #333: Unbound Segmentation Fault w/ log_info Functions From
|
- Fix #333: Unbound Segmentation Fault w/ log_info Functions From
|
||||||
Python Mod.
|
Python Mod.
|
||||||
|
- Fix that minimal-responses does not remove addresses from a priming
|
||||||
|
query response.
|
||||||
|
|
||||||
21 October 2020: George
|
21 October 2020: George
|
||||||
- Fix #327: net/if.h check fails on some darwin versions; contribution by
|
- Fix #327: net/if.h check fails on some darwin versions; contribution by
|
||||||
|
|
|
||||||
|
|
@ -624,6 +624,9 @@ positive_answer(struct reply_info* rep, uint16_t qtype) {
|
||||||
|
|
||||||
for(i=0;i<rep->an_numrrsets; i++) {
|
for(i=0;i<rep->an_numrrsets; i++) {
|
||||||
if(ntohs(rep->rrsets[i]->rk.type) == qtype) {
|
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
|
/* in case it is a wildcard with DNSSEC, there will
|
||||||
* be NSEC/NSEC3 records in the authority section
|
* be NSEC/NSEC3 records in the authority section
|
||||||
* that we cannot remove */
|
* that we cannot remove */
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue