]> 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)
committerViktor Dukhovni <openssl-users@dukhovni.org>
Mon, 20 Jan 2025 07:22:48 +0000 (18:22 +1100)
commit3c7db9e0fdf4706d91cedf5fca70b609bdc1677e
tree4367209dd0241d3dc60fc1714b5204d65d8b7bd9
parent1df07c761b25e5aca8ecd90b81d05496631285fb
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)
crypto/x509/x509_cmp.c
doc/man3/X509_add_cert.pod