aboutsummaryrefslogtreecommitdiff
path: root/test/bio_prefix_text.c
diff options
context:
space:
mode:
authorPeiwei Hu <jlu.hpw@foxmail.com>2021-11-14 23:45:39 +0800
committerTomas Mraz <tomas@openssl.org>2021-11-22 14:43:44 +0100
commitac6568ecc6050bc526adc6a7245835fd95d8dfed (patch)
tree976d2bd2bcccc5e25888f5c86719ac66da2a79f8 /test/bio_prefix_text.c
parenta8f4cdd70c9d9ebe4553d7a72c67f73eaf0c169d (diff)
downloadopenssl-ac6568ecc6050bc526adc6a7245835fd95d8dfed.zip
openssl-ac6568ecc6050bc526adc6a7245835fd95d8dfed.tar.gz
openssl-ac6568ecc6050bc526adc6a7245835fd95d8dfed.tar.bz2
BIO_set_prefix: 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)
Diffstat (limited to 'test/bio_prefix_text.c')
-rw-r--r--test/bio_prefix_text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bio_prefix_text.c b/test/bio_prefix_text.c
index 4fc468a..5eed72d 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;