BIO_set_indent: fix return check

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17028)
This commit is contained in:
Peiwei Hu 2021-11-14 23:46:47 +08:00 committed by Tomas Mraz
parent ac6568ecc6
commit a9ed63f1d1

View File

@ -211,7 +211,7 @@ static int setup(void)
progname, idx, amount - 1);
return 0;
}
if (!BIO_set_indent(chain[idx], (long)indent)) {
if (BIO_set_indent(chain[idx], (long)indent) <= 0) {
BIO_printf(bio_err, "%s: failed setting indentation: %s",
progname, arg);
return 0;