]> 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>
Thu, 21 Feb 2019 03:45:09 +0000 (19:45 -0800)
commit8d4741af21e9373fa3c8ab6a40d0caa429cbdceb
tree83626afded0eb5b03fbf9d1fe0ffaa58d40e98b0
parent70a1bc15b7fbbbd3787af0be216d669839ce773d
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)
lib/dns/zone.c