[openssl/openssl] 13ca68: Fix BIO_set_indent() check

Niels Dossche noreply at github.com
Wed Feb 8 16:06:27 UTC 2023


  Branch: refs/heads/openssl-3.1
  Home:   https://github.com/openssl/openssl
  Commit: 13ca68791ff9fb47598eefbda7fe3fedd3c1430e
      https://github.com/openssl/openssl/commit/13ca68791ff9fb47598eefbda7fe3fedd3c1430e
  Author: Niels Dossche <niels.dossche at ugent.be>
  Date:   2023-02-08 (Wed, 08 Feb 2023)

  Changed paths:
    M crypto/asn1/asn1_parse.c

  Log Message:
  -----------
  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 at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20186)

(cherry picked from commit 826374921a6b92293fd87655416eda8ef07301c8)




More information about the openssl-commits mailing list