From: Evan Hunt Date: Tue, 7 Feb 2023 20:37:25 +0000 (-0800) Subject: silence a spurious warning during key generation X-Git-Tag: v9.19.11~87^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=82503bec99307c265034c6d3aa1b9b2903627751;p=thirdparty%2Fbind9.git silence a spurious warning during key generation when generating a key, if a DH key already existed for the same name, a spurious warning message was generated saying "bad key type". this is fixed. --- diff --git a/lib/dns/dnssec.c b/lib/dns/dnssec.c index c6a4034962f..f92d3bbe635 100644 --- a/lib/dns/dnssec.c +++ b/lib/dns/dnssec.c @@ -1487,6 +1487,7 @@ dns_dnssec_findmatchingkeys(const dns_name_t *origin, const char *directory, case DST_ALG_HMACSHA256: case DST_ALG_HMACSHA384: case DST_ALG_HMACSHA512: + case DST_ALG_DH: if (result == DST_R_BADKEYTYPE) { continue; }