diff --git a/CHANGES b/CHANGES index 9f136240a5..2b12256019 100644 --- a/CHANGES +++ b/CHANGES @@ -1,3 +1,6 @@ +3974. [bug] handle DH_compute_key() failure correctly in + openssldh_link.c. [RT #37477] + 3972. [bug] Fix host's usage statement. [RT #37397] 3971. [bug] Reduce the cascasding failures due to a bad $TTL line diff --git a/lib/dns/openssldh_link.c b/lib/dns/openssldh_link.c index 6c3f555f8d..2056394e03 100644 --- a/lib/dns/openssldh_link.c +++ b/lib/dns/openssldh_link.c @@ -93,7 +93,7 @@ openssldh_computesecret(const dst_key_t *pub, const dst_key_t *priv, if (r.length < len) return (ISC_R_NOSPACE); ret = DH_compute_key(r.base, dhpub->pub_key, dhpriv); - if (ret == 0) + if (ret <= 0) return (dst__openssl_toresult2("DH_compute_key", DST_R_COMPUTESECRETFAILURE)); isc_buffer_add(secret, len);