Skip to content
GitLab
Menu
Projects
Groups
Snippets
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
cb9613f8
Commit
cb9613f8
authored
Dec 07, 2017
by
Mark Andrews
Browse files
4843. [bug] dnssec-signzone free hashlist on exit. [RT #46791]
(cherry picked from commit
8444b485
)
parent
728cc3be
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
cb9613f8
4843. [bug] dnssec-signzone free hashlist on exit. [RT #46791]
4842. [bug] Conditionally compile opensslecdsa_link.c to avoid
warnings about unused function. [RT #46790]
...
...
bin/dnssec/dnssec-signzone.c
View file @
cb9613f8
...
...
@@ -723,6 +723,17 @@ hashlist_init(hashlist_t *l, unsigned int nodes, unsigned int length) {
}
}
static
void
hashlist_free
(
hashlist_t
*
l
)
{
if
(
l
->
hashbuf
)
{
free
(
l
->
hashbuf
);
l
->
hashbuf
=
NULL
;
l
->
entries
=
0
;
l
->
length
=
0
;
l
->
size
=
0
;
}
}
static
void
hashlist_add
(
hashlist_t
*
l
,
const
unsigned
char
*
hash
,
size_t
len
)
{
...
...
@@ -3830,6 +3841,9 @@ main(int argc, char *argv[]) {
dns_db_closeversion
(
gdb
,
&
gversion
,
ISC_FALSE
);
dns_db_detach
(
&
gdb
);
if
(
IS_NSEC3
)
hashlist_free
(
&
hashlist
);
while
(
!
ISC_LIST_EMPTY
(
keylist
))
{
key
=
ISC_LIST_HEAD
(
keylist
);
ISC_LIST_UNLINK
(
keylist
,
key
,
link
);
...
...
Write
Preview
Supports
Markdown
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