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
ecda7175
Commit
ecda7175
authored
Nov 03, 1999
by
Bob Halley
Browse files
deal with negative responses in query_simplefind()
parent
83ffabbf
Changes
1
Hide whitespace changes
Inline
Side-by-side
bin/named/query.c
View file @
ecda7175
...
...
@@ -416,6 +416,8 @@ query_simplefind(void *arg, dns_name_t *name, dns_rdatatype_t type,
dns_zone_t
*
zone
;
REQUIRE
(
NS_CLIENT_VALID
(
client
));
REQUIRE
(
rdataset
!=
NULL
);
REQUIRE
(
sigrdataset
!=
NULL
);
dns_rdataset_init
(
&
zrdataset
);
dns_rdataset_init
(
&
zsigrdataset
);
...
...
@@ -520,8 +522,13 @@ query_simplefind(void *arg, dns_name_t *name, dns_rdatatype_t type,
* Otherwise, the glue is the best answer.
*/
result
=
ISC_R_SUCCESS
;
}
else
if
(
result
!=
ISC_R_SUCCESS
)
}
else
if
(
result
!=
ISC_R_SUCCESS
)
{
if
(
rdataset
->
methods
!=
NULL
)
dns_rdataset_disassociate
(
rdataset
);
if
(
sigrdataset
->
methods
!=
NULL
)
dns_rdataset_disassociate
(
sigrdataset
);
result
=
DNS_R_NOTFOUND
;
}
cleanup:
if
(
zrdataset
.
methods
!=
NULL
)
{
...
...
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