Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
BIND
Commits
94e22aa2
Commit
94e22aa2
authored
May 02, 2018
by
Mukund Sivaraman
Committed by
Ondřej Surý
May 16, 2018
Browse files
Don't validate non-pending glue when adding to the additional section
(cherry picked from commit
31bd3147
)
parent
337db29d
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/named/query.c
View file @
94e22aa2
...
...
@@ -1579,8 +1579,7 @@ query_addadditional(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
have_a
=
ISC_TRUE
;
#endif
if
(
additionaltype
==
dns_rdatasetadditional_fromcache
&&
(
DNS_TRUST_PENDING
(
rdataset
->
trust
)
||
DNS_TRUST_GLUE
(
rdataset
->
trust
))
&&
DNS_TRUST_PENDING
(
rdataset
->
trust
)
&&
!
validate
(
client
,
db
,
fname
,
rdataset
,
sigrdataset
))
{
dns_rdataset_disassociate
(
rdataset
);
...
...
@@ -1650,8 +1649,7 @@ query_addadditional(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
goto
addname
;
#endif
if
(
additionaltype
==
dns_rdatasetadditional_fromcache
&&
(
DNS_TRUST_PENDING
(
rdataset
->
trust
)
||
DNS_TRUST_GLUE
(
rdataset
->
trust
))
&&
DNS_TRUST_PENDING
(
rdataset
->
trust
)
&&
!
validate
(
client
,
db
,
fname
,
rdataset
,
sigrdataset
))
{
dns_rdataset_disassociate
(
rdataset
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment