mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-13 20:06:24 +08:00
sm2: fix cv free error, in o2i_SM2CiphertextValue() function
This commit is contained in:
4
crypto/sm2/sm2_oct.c
Normal file → Executable file
4
crypto/sm2/sm2_oct.c
Normal file → Executable file
@@ -274,7 +274,9 @@ SM2CiphertextValue *o2i_SM2CiphertextValue(const EC_GROUP *group,
|
|||||||
ret = cv;
|
ret = cv;
|
||||||
|
|
||||||
end:
|
end:
|
||||||
SM2CiphertextValue_free(cv);
|
if ((cv != *pout) && (!ret))
|
||||||
|
SM2CiphertextValue_free(cv);
|
||||||
|
|
||||||
EC_POINT_free(point);
|
EC_POINT_free(point);
|
||||||
BN_CTX_free(bn_ctx);
|
BN_CTX_free(bn_ctx);
|
||||||
return ret;
|
return ret;
|
||||||
|
|||||||
Reference in New Issue
Block a user