nss: Don't ignore Curl_extract_certinfo() OOM failure
This commit is contained in:
parent
0943045108
commit
2728caa613
@ -774,12 +774,17 @@ static CURLcode display_conn_info(struct connectdata *conn, PRFileDesc *sock)
|
|||||||
result = Curl_ssl_init_certinfo(conn->data, i);
|
result = Curl_ssl_init_certinfo(conn->data, i);
|
||||||
if(!result) {
|
if(!result) {
|
||||||
for(i = 0; cert; cert = cert2) {
|
for(i = 0; cert; cert = cert2) {
|
||||||
Curl_extract_certinfo(conn, i++, (char *)cert->derCert.data,
|
result = Curl_extract_certinfo(conn, i++, (char *)cert->derCert.data,
|
||||||
(char *)cert->derCert.data + cert->derCert.len);
|
(char *)cert->derCert.data +
|
||||||
|
cert->derCert.len);
|
||||||
|
if(result)
|
||||||
|
break;
|
||||||
|
|
||||||
if(cert->isRoot) {
|
if(cert->isRoot) {
|
||||||
CERT_DestroyCertificate(cert);
|
CERT_DestroyCertificate(cert);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
cert2 = CERT_FindCertIssuer(cert, now, certUsageSSLCA);
|
cert2 = CERT_FindCertIssuer(cert, now, certUsageSSLCA);
|
||||||
CERT_DestroyCertificate(cert);
|
CERT_DestroyCertificate(cert);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user