Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Sergei Trofimovich
BIND
Commits
53800281
Commit
53800281
authored
Aug 01, 2019
by
Mark Andrews
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
maintain a reference to 'rpz' when calling rpz.c:update_quantum
parent
fefb2d26
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
lib/dns/rpz.c
lib/dns/rpz.c
+6
-0
No files found.
lib/dns/rpz.c
View file @
53800281
...
...
@@ -169,6 +169,9 @@ struct dns_rpz_nm_data {
dns_rpz_nm_zbits_t
wild
;
};
static
void
rpz_detach
(
dns_rpz_zone_t
**
rpzp
,
dns_rpz_zones_t
*
rpzs
);
#if 0
/*
* Catch a name while debugging.
...
...
@@ -1980,6 +1983,7 @@ update_quantum(isc_task_t *task, isc_event_t *event) {
isc_ht_destroy
(
&
rpz
->
newnodes
);
dns_db_closeversion
(
rpz
->
updb
,
&
rpz
->
updbversion
,
false
);
dns_db_detach
(
&
rpz
->
updb
);
rpz_detach
(
&
rpz
,
rpz
->
rpzs
);
}
static
void
...
...
@@ -1994,6 +1998,7 @@ dns_rpz_update_from_db(dns_rpz_zone_t *rpz) {
REQUIRE
(
rpz
->
updbit
==
NULL
);
REQUIRE
(
rpz
->
newnodes
==
NULL
);
isc_refcount_increment
(
&
rpz
->
refs
);
dns_db_attach
(
rpz
->
db
,
&
rpz
->
updb
);
rpz
->
updbversion
=
rpz
->
dbversion
;
rpz
->
dbversion
=
NULL
;
...
...
@@ -2018,6 +2023,7 @@ dns_rpz_update_from_db(dns_rpz_zone_t *rpz) {
isc_ht_destroy
(
&
rpz
->
newnodes
);
dns_db_closeversion
(
rpz
->
updb
,
&
rpz
->
updbversion
,
false
);
dns_db_detach
(
&
rpz
->
updb
);
rpz_detach
(
&
rpz
,
rpz
->
rpzs
);
}
/*
...
...
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