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
594eadcc
Commit
594eadcc
authored
May 28, 2017
by
Evan Hunt
Browse files
[master] Add DLZ db version to activeversions
4628. [bug] Fixed a potential reference leak in query_getdb(). [RT #45247]
parent
5f6aa595
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
594eadcc
4628. [bug] Fixed a potential reference leak in query_getdb().
[RT #45247]
4627. [placeholder]
4626. [test] Added more tests for handling of different record
...
...
bin/named/query.c
View file @
594eadcc
...
...
@@ -973,7 +973,7 @@ ns_query_init(ns_client_t *client) {
return
(
result
);
}
static
inline
ns_dbversion_t
*
static
ns_dbversion_t
*
query_findversion
(
ns_client_t
*
client
,
dns_db_t
*
db
)
{
ns_dbversion_t
*
dbversion
;
...
...
@@ -1476,6 +1476,8 @@ query_getdb(ns_client_t *client, dns_name_t *name, dns_rdatatype_t qtype,
zonelabels
,
&
cm
,
&
ci
,
&
tdbp
);
/* If we successful, we found a better match. */
if
(
tresult
==
ISC_R_SUCCESS
)
{
ns_dbversion_t
*
dbversion
;
/*
* If the previous search returned a zone, detach it.
*/
...
...
@@ -1494,15 +1496,16 @@ query_getdb(ns_client_t *client, dns_name_t *name, dns_rdatatype_t qtype,
*/
*
versionp
=
NULL
;
/*
* Get our database version.
*/
dns_db_currentversion
(
tdbp
,
versionp
);
/*
* Be sure to return our database.
*/
*
dbp
=
tdbp
;
dbversion
=
query_findversion
(
client
,
tdbp
);
if
(
dbversion
==
NULL
)
{
result
=
ISC_R_NOMEMORY
;
}
else
{
/*
* Be sure to return our database.
*/
*
dbp
=
tdbp
;
*
versionp
=
dbversion
->
version
;
}
/*
* We return a null zone, No stats for DLZ zones.
...
...
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