]> granicus.if.org Git - openssl/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:33:46 +0000 (09:33 +0000)
commit3942e7d9ebc262fa5c5c42aba0167e06d981f004
tree2f1ed7d3df9aea9ab34a92a8a4eac861f33f97b4
parent2679485e69c55b8186bc14d4947fc508c5f55358
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>
(cherry picked from commit 6aa8dab2bbfd5ad3cfc0d07fe5d7243635d5b2a2)

Conflicts:
crypto/dh/dh_ameth.c
crypto/dh/dh_ameth.c