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:
47d5566
)
fix error found by coverity: check if ctx is != NULL before calling BN_CTX_end()
author
Nils Larsch
<nils@openssl.org>
Tue, 14 Mar 2006 22:48:41 +0000
(22:48 +0000)
committer
Nils Larsch
<nils@openssl.org>
Tue, 14 Mar 2006 22:48:41 +0000
(22:48 +0000)
crypto/ec/ec_mult.c
patch
|
blob
|
history
diff --git
a/crypto/ec/ec_mult.c
b/crypto/ec/ec_mult.c
index 7320e31c5c7c352773a2e650e23bd4f2cc24792f..a045139a0015099360a06b67af6eb142d9ae1498 100644
(file)
--- a/
crypto/ec/ec_mult.c
+++ b/
crypto/ec/ec_mult.c
@@
-879,7
+879,8
@@
int ec_wNAF_precompute_mult(EC_GROUP *group, BN_CTX *ctx)
ret = 1;
err:
- BN_CTX_end(ctx);
+ if (ctx != NULL)
+ BN_CTX_end(ctx);
if (new_ctx != NULL)
BN_CTX_free(new_ctx);
if (pre_comp)