mirror of
https://github.com/QuasarApp/openssl.git
synced 2025-05-19 12:59:40 +00:00
fix error found by coverity: check if ctx is != NULL before calling BN_CTX_end()
This commit is contained in:
parent
b7a80146f4
commit
d5cc2f19cd
@ -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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user