From ac6568ecc6050bc526adc6a7245835fd95d8dfed Mon Sep 17 00:00:00 2001 From: Peiwei Hu Date: Sun, 14 Nov 2021 23:45:39 +0800 Subject: [PATCH] BIO_set_prefix: fix return check Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/17028) --- test/bio_prefix_text.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/bio_prefix_text.c b/test/bio_prefix_text.c index 4fc468a976..5eed72d66a 100644 --- a/test/bio_prefix_text.c +++ b/test/bio_prefix_text.c @@ -242,7 +242,7 @@ static int setup(void) progname, idx, amount - 1); return 0; } - if (!BIO_set_prefix(chain[idx], colon)) { + if (BIO_set_prefix(chain[idx], colon) <= 0) { BIO_printf(bio_err, "%s: failed setting prefix: %s", progname, arg); return 0; -- 2.34.1