mirror of
https://github.com/curl/curl.git
synced 2026-08-02 02:30:27 +03:00
openssl: get_cert_chain: fix NULL dereference
CID 1361815: Explicit null dereferenced (FORWARD_NULL)
This commit is contained in:
parent
8132fe11b3
commit
675c30abc2
1 changed files with 5 additions and 3 deletions
|
|
@ -2550,9 +2550,11 @@ static CURLcode get_cert_chain(struct connectdata *conn,
|
|||
EVP_PKEY_free(pubkey);
|
||||
}
|
||||
|
||||
for(j = 0; j < psig->length; j++)
|
||||
BIO_printf(mem, "%02x:", psig->data[j]);
|
||||
push_certinfo("Signature", i);
|
||||
if(psig) {
|
||||
for(j = 0; j < psig->length; j++)
|
||||
BIO_printf(mem, "%02x:", psig->data[j]);
|
||||
push_certinfo("Signature", i);
|
||||
}
|
||||
|
||||
PEM_write_bio_X509(mem, x);
|
||||
push_certinfo("Cert", i);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue