diff options
author | 2019-06-28 15:17:16 +0000 | |
---|---|---|
committer | 2019-06-28 15:17:16 +0000 | |
commit | 550cf4a985d37da8cf68f019ab80c5578807cb88 (patch) | |
tree | 9989ce7e1bc7c63c6fd09ba0c704c9e9b7b0ae3a /usr.sbin/unbound/iterator/iter_utils.c | |
parent | update to unbound-1.9.2, florian@ agrees (diff) | |
download | wireguard-openbsd-550cf4a985d37da8cf68f019ab80c5578807cb88.tar.xz wireguard-openbsd-550cf4a985d37da8cf68f019ab80c5578807cb88.zip |
merge unbound 1.9.2
Diffstat (limited to 'usr.sbin/unbound/iterator/iter_utils.c')
-rw-r--r-- | usr.sbin/unbound/iterator/iter_utils.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/usr.sbin/unbound/iterator/iter_utils.c b/usr.sbin/unbound/iterator/iter_utils.c index be7965a60e3..2ab55ceb497 100644 --- a/usr.sbin/unbound/iterator/iter_utils.c +++ b/usr.sbin/unbound/iterator/iter_utils.c @@ -1211,6 +1211,19 @@ iter_scrub_ds(struct dns_msg* msg, struct ub_packed_rrset_key* ns, uint8_t* z) } } +void +iter_scrub_nxdomain(struct dns_msg* msg) +{ + if(msg->rep->an_numrrsets == 0) + return; + + memmove(msg->rep->rrsets, msg->rep->rrsets+msg->rep->an_numrrsets, + sizeof(struct ub_packed_rrset_key*) * + (msg->rep->rrset_count-msg->rep->an_numrrsets)); + msg->rep->rrset_count -= msg->rep->an_numrrsets; + msg->rep->an_numrrsets = 0; +} + void iter_dec_attempts(struct delegpt* dp, int d) { struct delegpt_addr* a; |