]> 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:54:20 +0000 (19:54 -0800)
commitacae423ef4274c5535da324da78ce1441628d5f6
treea0329d5d79783f2ec5df95f97520ab5705ff4974
parent260d30edc07164e86c951789db36432c82146c1c
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