Matt Caswell 3942e7d9eb 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
2015-03-12 09:33:46 +00:00
..
2015-03-12 09:33:46 +00:00
2015-01-22 09:38:39 +00:00
2014-01-06 13:33:27 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00
2015-01-22 09:38:39 +00:00