mirror of
https://github.com/curl/curl.git
synced 2024-11-27 05:50:21 +08:00
openssl: get_cert_chain: avoid NULL dereference
CID 1361811: Explicit null dereferenced (FORWARD_NULL)
This commit is contained in:
parent
b499073406
commit
8132fe11b3
@ -2385,10 +2385,12 @@ static CURLcode get_cert_chain(struct connectdata *conn,
|
|||||||
X509_get0_signature(&psig, &palg, x);
|
X509_get0_signature(&psig, &palg, x);
|
||||||
X509_signature_print(mem, palg, a);
|
X509_signature_print(mem, palg, a);
|
||||||
ASN1_STRING_free(a);
|
ASN1_STRING_free(a);
|
||||||
}
|
|
||||||
|
if(palg) {
|
||||||
i2a_ASN1_OBJECT(mem, palg->algorithm);
|
i2a_ASN1_OBJECT(mem, palg->algorithm);
|
||||||
push_certinfo("Public Key Algorithm", i);
|
push_certinfo("Public Key Algorithm", i);
|
||||||
|
}
|
||||||
|
}
|
||||||
X509V3_ext(data, i, X509_get0_extensions(x));
|
X509V3_ext(data, i, X509_get0_extensions(x));
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Loading…
Reference in New Issue
Block a user