Fix and simplify error handling in (RSA/EC_kmeth)_new_method()
authorFdaSilvaYY <fdasilvayy@gmail.com>
Tue, 17 May 2016 19:21:46 +0000 (21:21 +0200)
committerMatt Caswell <matt@openssl.org>
Mon, 23 May 2016 12:37:02 +0000 (13:37 +0100)
commit11ed851db0c49f9fdd534fbd8a2791266f32c5b8
tree061585adc8f341718c2d244edc108766f1c808a3
parentaca6dae94b5bb298b05081a876e30370d82e22b5
Fix and simplify error handling in (RSA/EC_kmeth)_new_method()

Inspired from PR #873.
Nearly same as 2bbf0ba.

Reviewed-by: Rich Salz <rsalz@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
crypto/ec/ec_kmeth.c
crypto/rsa/rsa_lib.c