diff options
author | Peiwei Hu <jlu.hpw@foxmail.com> | 2021-11-14 23:46:47 +0800 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2021-11-22 15:22:01 +0100 |
commit | bcb8c7eeae5b81316104799f401f8c2e6f5156cd (patch) | |
tree | 2d321fe53c37eb704835b39bb2825a93ec14a401 /test | |
parent | 431ce76537667e921d3f5dfc81eef5367e5a2cd4 (diff) |
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)
(cherry picked from commit a9ed63f1d1d8993a8b30fc978ce09674f97f061d)
Diffstat (limited to 'test')
-rw-r--r-- | test/bio_prefix_text.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/bio_prefix_text.c b/test/bio_prefix_text.c index 5eed72d66a..79ff8ec4a2 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; |