3974. [bug] handle DH_compute_key() failure correctly in

openssldh_link.c. [RT #37477]

(cherry picked from commit 58a1051e92)
This commit is contained in:
Mark Andrews
2014-10-13 23:42:22 +11:00
parent 835ec62f82
commit dfb6462891
2 changed files with 4 additions and 1 deletions
+3
View File
@@ -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
+1 -1
View File
@@ -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);