Fix return without clean

This commit is contained in:
Zhi Guan
2026-06-17 15:59:55 +08:00
parent 7ef784a9fc
commit 4831f5a549
6 changed files with 6 additions and 6 deletions

View File

@@ -496,7 +496,7 @@ bad:
crl_http_uri, crl_http_uri ? strlen(crl_http_uri) : 0,
crl_ldap_uri, crl_ldap_uri ? strlen(crl_ldap_uri) : 0) != 1) {
fprintf(stderr, "%s: set CRLDistributionPoints extension failure\n", prog);
return -1;
goto end;
}
}
if (inhibit_any_policy >= 0) {

View File

@@ -332,7 +332,7 @@ bad:
}
if (fwrite(outbuf, 1, outlen, outfp) != outlen) {
fprintf(stderr, "%s: output failure\n", prog);
return -1;
goto end;
}
ret = 0;

View File

@@ -552,7 +552,7 @@ bad:
crl_http_uri, crl_http_uri ? strlen(crl_http_uri) : 0,
crl_ldap_uri, crl_ldap_uri ? strlen(crl_ldap_uri) : 0) != 1) {
fprintf(stderr, "%s: set CRLDistributionPoints extension failure\n", prog);
return -1;
goto end;
}
}
if (inhibit_any_policy >= 0) {

View File

@@ -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);