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
83ffabbf
Commit
83ffabbf
authored
Nov 03, 1999
by
Bob Halley
Browse files
Deal with negative cache responses when using dns_db_findrdataset().
parent
307fed93
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/named/query.c
View file @
83ffabbf
...
...
@@ -800,6 +800,15 @@ query_addadditional(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
dns_rdatatype_a
,
0
,
client
->
now
,
rdataset
,
sigrdataset
);
if
(
result
==
DNS_R_NCACHENXDOMAIN
)
goto
addname
;
if
(
result
==
DNS_R_NCACHENXRRSET
)
{
dns_rdataset_disassociate
(
rdataset
);
/*
* Negative cache entries don't have sigrdatasets.
*/
INSIST
(
sigrdataset
->
methods
==
NULL
);
}
if
(
zdb
!=
NULL
&&
result
==
ISC_R_NOTFOUND
)
{
/*
* The cache doesn't have an A, but we may have
...
...
@@ -838,6 +847,12 @@ query_addadditional(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
dns_rdatatype_a6
,
0
,
client
->
now
,
rdataset
,
sigrdataset
);
if
(
result
==
DNS_R_NCACHENXDOMAIN
)
goto
addname
;
if
(
result
==
DNS_R_NCACHENXRRSET
)
{
dns_rdataset_disassociate
(
rdataset
);
INSIST
(
sigrdataset
->
methods
==
NULL
);
}
if
(
zdb
!=
NULL
&&
result
==
ISC_R_NOTFOUND
)
{
/*
* The cache doesn't have an A6, but we may have
...
...
@@ -877,6 +892,12 @@ query_addadditional(void *arg, dns_name_t *name, dns_rdatatype_t qtype) {
dns_rdatatype_aaaa
,
0
,
client
->
now
,
rdataset
,
sigrdataset
);
if
(
result
==
DNS_R_NCACHENXDOMAIN
)
goto
addname
;
if
(
result
==
DNS_R_NCACHENXRRSET
)
{
dns_rdataset_disassociate
(
rdataset
);
INSIST
(
sigrdataset
->
methods
==
NULL
);
}
if
(
zdb
!=
NULL
&&
result
==
ISC_R_NOTFOUND
)
{
/*
* The cache doesn't have an AAAA, but we may have
...
...
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