Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
BIND
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
633
Issues
633
List
Boards
Labels
Service Desk
Milestones
Merge Requests
106
Merge Requests
106
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ISC Open Source Projects
BIND
Commits
8444b485
Commit
8444b485
authored
Dec 07, 2017
by
Mark Andrews
2
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4843. [bug] dnssec-signzone free hashlist on exit. [RT #46791]
parent
63459cdc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
0 deletions
+16
-0
CHANGES
CHANGES
+2
-0
bin/dnssec/dnssec-signzone.c
bin/dnssec/dnssec-signzone.c
+14
-0
No files found.
CHANGES
View file @
8444b485
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 @
8444b485
...
...
@@ -716,6 +716,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
)
{
...
...
@@ -3892,6 +3903,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
);
...
...
Mark Andrews
@marka
mentioned in commit
cb9613f8
·
Dec 20, 2017
mentioned in commit
cb9613f8
mentioned in commit cb9613f86e0693a2429773c1543f61140aa48865
Toggle commit list
Mark Andrews
@marka
mentioned in commit
fdb6a8e3
·
Jan 26, 2018
mentioned in commit
fdb6a8e3
mentioned in commit fdb6a8e3c9f4945dd62bb872c93ee8ca2d751658
Toggle commit list
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