]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix dh_pub_encode
authorMatt Caswell <matt@openssl.org>
Wed, 11 Mar 2015 20:08:16 +0000 (20:08 +0000)
committerMatt Caswell <matt@openssl.org>
Thu, 12 Mar 2015 09:22:56 +0000 (09:22 +0000)
commit6aa8dab2bbfd5ad3cfc0d07fe5d7243635d5b2a2
tree1b985cff0ad492dc016780bb37abbf4058c91c9a
parent34a7ed0c39aa3ab67eea1e106577525eaf0d7a00
Fix dh_pub_encode

The return value from ASN1_STRING_new() was not being checked which could
lead to a NULL deref in the event of a malloc failure. Also fixed a mem
leak in the error path.

Reviewed-by: Rich Salz <rsalz@openssl.org>
crypto/dh/dh_ameth.c