mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-05-13 03:46:26 +08:00
maybe memory leak
maybe memory leak
This commit is contained in:
@@ -211,8 +211,9 @@ int ASN1_item_sign_ctx(const ASN1_ITEM *it,
|
|||||||
#ifndef OPENSSL_NO_SM2
|
#ifndef OPENSSL_NO_SM2
|
||||||
if (OBJ_obj2nid(algor1->algorithm) == NID_sm2sign_with_sm3) {
|
if (OBJ_obj2nid(algor1->algorithm) == NID_sm2sign_with_sm3) {
|
||||||
if (!EVP_PKEY_CTX_set_ec_scheme(EVP_MD_CTX_pkey_ctx(ctx), NID_sm_scheme)) {
|
if (!EVP_PKEY_CTX_set_ec_scheme(EVP_MD_CTX_pkey_ctx(ctx), NID_sm_scheme)) {
|
||||||
|
outl = 0;
|
||||||
ASN1err(ASN1_F_ASN1_ITEM_SIGN_CTX, ERR_R_EC_LIB);
|
ASN1err(ASN1_F_ASN1_ITEM_SIGN_CTX, ERR_R_EC_LIB);
|
||||||
return 0;
|
goto err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user