diff options
author | J Mohan Rao Arisankala <mohan@barracuda.com> | 2016-05-05 23:43:32 +0530 |
---|---|---|
committer | Matt Caswell <matt@openssl.org> | 2016-05-09 09:06:06 +0100 |
commit | cb1d435cac2a9a7bd6019f9f23648c8075251109 (patch) | |
tree | 37af32e7b67b0871d5542ac223bddfb66058f936 /crypto/ec | |
parent | 5cf14ce074dfd1780ae4c68b2e7f083bfaf47530 (diff) | |
download | openssl-cb1d435cac2a9a7bd6019f9f23648c8075251109.tar.gz |
few missing allocation failure checks and releases on error paths
- Missing checks for allocation failure.
- releasing memory in few missing error paths
Reviewed-by: Kurt Roeckx <kurt@openssl.org>
Reviewed-by: Matt Caswell <matt@openssl.org>
Diffstat (limited to 'crypto/ec')
-rw-r--r-- | crypto/ec/ec_kmeth.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/crypto/ec/ec_kmeth.c b/crypto/ec/ec_kmeth.c index 003421eabe..75e58d5316 100644 --- a/crypto/ec/ec_kmeth.c +++ b/crypto/ec/ec_kmeth.c @@ -166,6 +166,7 @@ EC_KEY *EC_KEY_new_method(ENGINE *engine) ret->references = 1; if (ret->meth->init != NULL && ret->meth->init(ret) == 0) { + ECerr(EC_F_EC_KEY_NEW_METHOD, ERR_R_INIT_FAIL); EC_KEY_free(ret); return NULL; } |