From: Peiwei Hu Date: Sun, 14 Nov 2021 15:46:47 +0000 (+0800) Subject: BIO_set_indent: fix return check X-Git-Tag: openssl-3.2.0-alpha1~3305 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9ed63f1d1d8993a8b30fc978ce09674f97f061d;p=thirdparty%2Fopenssl.git BIO_set_indent: fix return check Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17028) --- diff --git a/test/bio_prefix_text.c b/test/bio_prefix_text.c index 5eed72d66a1..79ff8ec4a27 100644 --- a/test/bio_prefix_text.c +++ b/test/bio_prefix_text.c @@ -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;