Fix BIO_set_indent() check
authorNiels Dossche <niels.dossche@ugent.be>
Wed, 1 Feb 2023 14:06:12 +0000 (15:06 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 8 Feb 2023 16:03:52 +0000 (17:03 +0100)
commit826374921a6b92293fd87655416eda8ef07301c8
tree6edac33de81eaed47fef116bcd2d7801715e706c
parentdcd20cc139d1a26cd94c66cc5ebc8ab85d928356
Fix BIO_set_indent() check

This function returns an errorcode <= 0, but only < 0 is checked. Other
callers that check the return value perform this check correctly. Fix it
by changing the check to <= 0.

CLA: trivial

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20186)
crypto/asn1/asn1_parse.c