diff options
author | Rémi Verschelde <remi@verschelde.fr> | 2016-04-18 19:21:46 +0200 |
---|---|---|
committer | Rémi Verschelde <remi@verschelde.fr> | 2016-04-18 19:21:46 +0200 |
commit | 206895afae413df9a3961ce6793ce295babb5920 (patch) | |
tree | 0b16a8466e9f0f054176ecfb2fa24a6b942fcec6 /drivers/builtin_openssl2/crypto/ec/ec_key.c | |
parent | 336cbfa7b63721757874f0fc5c33ec5dd31c5076 (diff) | |
parent | e97922f22038e9049ed4c2db5b3736dfaa0edde3 (diff) |
Merge pull request #4329 from mrezai/openssl-1.0.2g
Update OpenSSL to version 1.0.2g
Diffstat (limited to 'drivers/builtin_openssl2/crypto/ec/ec_key.c')
-rw-r--r-- | drivers/builtin_openssl2/crypto/ec/ec_key.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/builtin_openssl2/crypto/ec/ec_key.c b/drivers/builtin_openssl2/crypto/ec/ec_key.c index c784b6fd30..bc94ab5661 100644 --- a/drivers/builtin_openssl2/crypto/ec/ec_key.c +++ b/drivers/builtin_openssl2/crypto/ec/ec_key.c @@ -387,6 +387,8 @@ int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x, tx = BN_CTX_get(ctx); ty = BN_CTX_get(ctx); + if (ty == NULL) + goto err; #ifndef OPENSSL_NO_EC2M tmp_nid = EC_METHOD_get_field_type(EC_GROUP_method_of(key->group)); |