]> git.ipfire.org Git - thirdparty/openssl.git/commit
Fix incomplete check on X509V3_add1_i2d()
authorndossche <niels.dossche@ugent.be>
Fri, 27 Jan 2023 14:43:42 +0000 (15:43 +0100)
committerPauli <pauli@openssl.org>
Tue, 31 Jan 2023 00:05:51 +0000 (11:05 +1100)
commitecd445464a73bb3f125327a604dd13ad16303ebc
treeea7dbcd1499f0d6d56331b87c745f8f78e36bb81
parent8bb55680e46c868b0aa09682c2bef954231841b5
Fix incomplete check on X509V3_add1_i2d()

X509V3_add1_i2d() can return both -1 and 0 as an error code. This check
only checked for 0. Change it into <= 0 to also catch the -1 error code.

CLA: trivial

Reviewed-by: Tim Hudson <tjh@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Paul Dale <pauli@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20157)
crypto/ocsp/ocsp_ext.c