mirror of
https://github.com/curl/curl.git
synced 2026-06-02 00:04:15 +03:00
openssl: get_cert_chain: avoid NULL dereference
CID 1361811: Explicit null dereferenced (FORWARD_NULL)
This commit is contained in:
parent
b499073406
commit
8132fe11b3
1 changed files with 5 additions and 3 deletions
|
|
@ -2385,10 +2385,12 @@ static CURLcode get_cert_chain(struct connectdata *conn,
|
|||
X509_get0_signature(&psig, &palg, x);
|
||||
X509_signature_print(mem, palg, a);
|
||||
ASN1_STRING_free(a);
|
||||
}
|
||||
i2a_ASN1_OBJECT(mem, palg->algorithm);
|
||||
push_certinfo("Public Key Algorithm", i);
|
||||
|
||||
if(palg) {
|
||||
i2a_ASN1_OBJECT(mem, palg->algorithm);
|
||||
push_certinfo("Public Key Algorithm", i);
|
||||
}
|
||||
}
|
||||
X509V3_ext(data, i, X509_get0_extensions(x));
|
||||
}
|
||||
#else
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue