Commit 31bd3147 authored by Mukund Sivaraman's avatar Mukund Sivaraman Committed by Ondřej Surý
Browse files

Don't validate non-pending glue when adding to the additional section

parent f03d68a7
...@@ -1880,8 +1880,7 @@ query_addadditional(void *arg, const dns_name_t *name, dns_rdatatype_t qtype) { ...@@ -1880,8 +1880,7 @@ query_addadditional(void *arg, const dns_name_t *name, dns_rdatatype_t qtype) {
mname = NULL; mname = NULL;
have_a = ISC_TRUE; have_a = ISC_TRUE;
if (additionaltype == dns_rdatasetadditional_fromcache && if (additionaltype == dns_rdatasetadditional_fromcache &&
(DNS_TRUST_PENDING(rdataset->trust) || DNS_TRUST_PENDING(rdataset->trust) &&
DNS_TRUST_GLUE(rdataset->trust)) &&
!validate(client, db, fname, rdataset, sigrdataset)) !validate(client, db, fname, rdataset, sigrdataset))
{ {
dns_rdataset_disassociate(rdataset); dns_rdataset_disassociate(rdataset);
...@@ -1945,8 +1944,7 @@ query_addadditional(void *arg, const dns_name_t *name, dns_rdatatype_t qtype) { ...@@ -1945,8 +1944,7 @@ query_addadditional(void *arg, const dns_name_t *name, dns_rdatatype_t qtype) {
!dns_rdataset_isassociated(sigrdataset))))) !dns_rdataset_isassociated(sigrdataset)))))
goto addname; goto addname;
if (additionaltype == dns_rdatasetadditional_fromcache && if (additionaltype == dns_rdatasetadditional_fromcache &&
(DNS_TRUST_PENDING(rdataset->trust) || DNS_TRUST_PENDING(rdataset->trust) &&
DNS_TRUST_GLUE(rdataset->trust)) &&
!validate(client, db, fname, rdataset, sigrdataset)) !validate(client, db, fname, rdataset, sigrdataset))
{ {
dns_rdataset_disassociate(rdataset); dns_rdataset_disassociate(rdataset);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment