]> git.ipfire.org Git - thirdparty/bind9.git/commit
Don't free key in compute_tag in case of failure
authorMatthijs Mekking <github@pletterpet.nl>
Wed, 12 Dec 2018 13:06:10 +0000 (14:06 +0100)
committerEvan Hunt <each@isc.org>
Mon, 4 Feb 2019 23:08:38 +0000 (15:08 -0800)
commit46f97707469bf07d053a71cecc79241df83d6c9b
treecf0420856064719c9f719b9223c3cbf90b2a00e1
parentcfdd35f26ac4509cec614284ce036e487a552504
Don't free key in compute_tag in case of failure

If `dns_dnssec_keyfromrdata` failed we don't need to call
`dst_key_free` because no `dstkey` was created.  Doing so
nevertheless will result in an assertion failure.

This can happen if the key uses an unsupported algorithm.

(cherry picked from commit 7a1ca39b950b7d5230b605ac60f15a1cb94e3d69)
(cherry picked from commit 1a39964067ba4107b3ab155cfab4ba8719f1f031)
(cherry picked from commit a92081a2daad9e1b8ce7b31f09c05a51c8c7fd52)
lib/dns/zone.c