projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5a22cf9
)
Adding missing BN_CTX_(start/end) in crypto/ec/ec_key.c
author
Steven Valdez
<svaldez@google.com>
Tue, 1 Mar 2016 18:20:43 +0000
(13:20 -0500)
committer
Dr. Stephen Henson
<steve@openssl.org>
Wed, 11 May 2016 17:48:48 +0000
(18:48 +0100)
RT#4363
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Stephen Henson <steve@openssl.org>
crypto/ec/ec_key.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ec_key.c
b/crypto/ec/ec_key.c
index 31ed8a58a87c6c1a25e420deee37348c2ade0bfd..14909b085cc0080109767f7d28b958f309995f46 100644
(file)
--- a/
crypto/ec/ec_key.c
+++ b/
crypto/ec/ec_key.c
@@
-399,8
+399,9
@@
int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,
}
ctx = BN_CTX_new();
if (ctx == NULL)
-
goto err
;
+
return 0
;
+ BN_CTX_start(ctx);
point = EC_POINT_new(key->group);
if (point == NULL)
@@
-455,6
+456,7
@@
int EC_KEY_set_public_key_affine_coordinates(EC_KEY *key, BIGNUM *x,
ok = 1;
err:
+ BN_CTX_end(ctx);
BN_CTX_free(ctx);
EC_POINT_free(point);
return ok;