Skip to content
GitLab
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
96c17c5e
Commit
96c17c5e
authored
Feb 27, 2014
by
Mark Andrews
Browse files
3761. [bug] Address dangling reference bug in dns_keytable_add.
[RT #35471]
parent
98922b2b
Changes
2
Hide whitespace changes
Inline
Side-by-side
CHANGES
View file @
96c17c5e
3761. [bug] Address dangling reference bug in dns_keytable_add.
[RT #35471]
3760. [bug] Improve SIT with native PKCS#11 and on Windows.
[RT #35433]
...
...
lib/dns/keytable.c
View file @
96c17c5e
...
...
@@ -174,6 +174,7 @@ insert(dns_keytable_t *keytable, isc_boolean_t managed,
for
(
k
=
node
->
data
;
k
!=
NULL
;
k
=
k
->
next
)
{
if
(
k
->
key
==
NULL
)
{
k
->
key
=
*
keyp
;
*
keyp
=
NULL
;
/* transfer ownership */
break
;
}
if
(
dst_key_compare
(
k
->
key
,
*
keyp
)
==
ISC_TRUE
)
...
...
@@ -182,7 +183,7 @@ insert(dns_keytable_t *keytable, isc_boolean_t managed,
if
(
k
==
NULL
)
result
=
ISC_R_SUCCESS
;
else
else
if
(
*
keyp
!=
NULL
)
dst_key_free
(
keyp
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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