]> git.ipfire.org Git - thirdparty/openssl.git/commit
s_cb.c: check the return value of X509_get0_pubkey()
authorx2018 <xkernel.wang@foxmail.com>
Wed, 1 Dec 2021 07:22:30 +0000 (15:22 +0800)
committerTomas Mraz <tomas@openssl.org>
Thu, 2 Dec 2021 14:15:02 +0000 (15:15 +0100)
commit5fae09f3d8da7c182c6cfb6a295dcfd15ae828ae
tree975205cec377ae97dde95fbff4d14a50891bf9ca
parent9d1a27051dcd4e7a621df54a073587c6c4486476
s_cb.c: check the return value of X509_get0_pubkey()

Check is done to prevent wrong memory access by EVP_PKEY_get0_asn1()

Also fix wrong coding style in the s_cb.c file.

Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/17176)
apps/lib/s_cb.c