Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/boringssl.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'crypto/evp/p_ec.c')
-rw-r--r--crypto/evp/p_ec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/crypto/evp/p_ec.c b/crypto/evp/p_ec.c
index c274131b..f45989ae 100644
--- a/crypto/evp/p_ec.c
+++ b/crypto/evp/p_ec.c
@@ -212,8 +212,9 @@ static int pkey_ec_ctrl(EVP_PKEY_CTX *ctx, int type, int p1, void *p2) {
OPENSSL_PUT_ERROR(EVP, pkey_ec_ctrl, EVP_R_INVALID_CURVE);
return 0;
}
- if (dctx->gen_group)
+ if (dctx->gen_group) {
EC_GROUP_free(dctx->gen_group);
+ }
dctx->gen_group = group;
return 1;