All the `goto` did in these cases was effectively `return 0`, so just
use that explicitly.
Closes https://github.com/curl/curl/pull/16356
failf(data, "No cert found in the openssl store: %s",
ossl_strerror(ERR_get_error(), error_buffer,
sizeof(error_buffer)));
- goto fail;
+ return 0;
}
if(SSL_CTX_use_certificate(ctx, cert) != 1) {
failf(data, "No private key found in the openssl store: %s",
ossl_strerror(ERR_get_error(), error_buffer,
sizeof(error_buffer)));
- goto fail;
+ return 0;
}
if(SSL_CTX_use_PrivateKey(ctx, priv_key) != 1) {