]> git.ipfire.org Git - thirdparty/openssl.git/commit
If you call X509_add_cert with cert == NULL and the X509_ADD_FLAG_UP_REF
authorotherddn1978 <other_ddn@mail.ru>
Thu, 26 Dec 2024 10:26:34 +0000 (13:26 +0300)
committerTomas Mraz <tomas@openssl.org>
Mon, 20 Jan 2025 07:44:31 +0000 (08:44 +0100)
commit71e8158b36d03861aeaf77fb7fc64e37f7af72a4
tree10f72ea800f282babf240c443eb4daf274661299
parent17232fcc3454e21a4434f9a79d9551d3c68edea4
If you call X509_add_cert with cert == NULL and the X509_ADD_FLAG_UP_REF
flag, it will сrash to X509_up_ref.  Passing NULL here is not valid,
return 0 if cert == NULL.

Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Viktor Dukhovni <viktor@openssl.org>
Reviewed-by: Frederik Wedel-Heinen <fwh.openssl@gmail.com>
(Merged from https://github.com/openssl/openssl/pull/26267)

(cherry picked from commit 3c7db9e0fdf4706d91cedf5fca70b609bdc1677e)
crypto/x509/x509_cmp.c
doc/man3/X509_add_cert.pod