4098. [bug] Address use-after-free issue when using a

predecessor key with dnssec-settime. [RT #39272]

(cherry picked from commit bc8f82492d)
This commit is contained in:
Mark Andrews 2015-04-15 12:33:21 +10:00
parent 645e5b2460
commit caf9636770
2 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,6 @@
4098. [bug] Address use-after-free issue when using a
predecessor key with dnssec-settime. [RT #39272]
4097. [func] Add additional logging about xfrin transfer status.
[RT #39170]
@ -92,7 +95,7 @@
4061. [bug] Handle timeout in legacy system test. [RT #38573]
4060. [bug] dns_rdata_freestruct could be called on a
uninitialised structure when handling a error.
uninitialized structure when handling a error.
[RT #38568]
4059. [bug] Addressed valgrind warnings. [RT #38549]

View file

@ -399,7 +399,6 @@ main(int argc, char **argv) {
"inactive.\n", program);
changed = setpub = setact = ISC_TRUE;
dst_key_free(&prevkey);
} else {
if (prepub < 0)
prepub = 0;
@ -590,6 +589,8 @@ main(int argc, char **argv) {
printf("%s\n", newname);
}
if (prevkey != NULL)
dst_key_free(&prevkey);
dst_key_free(&key);
dst_lib_destroy();
isc_hash_destroy();