Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Dmitry Belyavskiy <beldmit@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/27368)
goto end;
}
} else {
+ /* within this block, ret > 0 means 'ok' */
if (noout) {
if (print) {
ASN1_PCTX *pctx = NULL;
CMS_ContentInfo_print_ctx(out, cms, 0, pctx);
ASN1_PCTX_free(pctx);
}
+ ret = 1;
} else if (outformat == FORMAT_SMIME) {
if (to)
BIO_printf(out, "To: %s%s", to, mime_eol);
}
ret = 0;
end:
- if (ret)
+ if (ret != 0)
ERR_print_errors(bio_err);
OSSL_STACK_OF_X509_free(encerts);
OSSL_STACK_OF_X509_free(other);