mirror of
https://github.com/guanzhi/GmSSL.git
synced 2026-06-20 03:44:15 +08:00
Fix return without clean
This commit is contained in:
@@ -155,7 +155,7 @@ bad:
|
||||
}
|
||||
if (sm2_encrypt_update(&ctx, inbuf, inlen) != 1) {
|
||||
fprintf(stderr, "gmssl %s: sm2_encrypt_update failed\n", prog);
|
||||
return -1;
|
||||
goto end;
|
||||
}
|
||||
if (sm2_encrypt_finish(&ctx, &sm2_key, outbuf, &outlen) != 1) {
|
||||
fprintf(stderr, "gmssl %s: sm2_encrypt_finish error\n", prog);
|
||||
|
||||
Reference in New Issue
Block a user