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.

(cherry picked from commit 82503bec99)
This commit is contained in:
Evan Hunt 2023-02-07 12:37:25 -08:00
parent 34009f3d78
commit bc3be6dc29

View file

@ -1489,6 +1489,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;
}