[openssl/openssl] b9097b: Fix incorrect error return value in i2r_ADMISSION_...

Niels Dossche noreply at github.com
Thu Jan 19 13:18:25 UTC 2023


  Branch: refs/heads/openssl-3.0
  Home:   https://github.com/openssl/openssl
  Commit: b9097b0c3b0a83814ae378b0a70d9daf75185e5f
      https://github.com/openssl/openssl/commit/b9097b0c3b0a83814ae378b0a70d9daf75185e5f
  Author: Niels Dossche <niels.dossche at ugent.be>
  Date:   2023-01-19 (Thu, 19 Jan 2023)

  Changed paths:
    M crypto/x509/v3_admis.c

  Log Message:
  -----------
  Fix incorrect error return value in i2r_ADMISSION_SYNTAX()

The other implementations of i2r return 0 in case of an error, but
i2r_ADMISSION_SYNTAX() returns -1. That means the check on i2r does not
catch the error. Change it to return 0 like the others do.

Fixes: #20066

CLA: trivial

Reviewed-by: Matt Caswell <matt at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20068)

(cherry picked from commit 53b5d6c30f3b8eaf7a582da2265c0d1cfe14d54f)




More information about the openssl-commits mailing list