зеркало из https://github.com/mozilla/gecko-dev.git
Prevent crash in certutil -C when incoming request has no attributes.
Bug 291542. r=julien.pierre
This commit is contained in:
Родитель
ff9d01f881
Коммит
91bf1ecf54
|
@ -2184,7 +2184,10 @@ CreateCert(
|
||||||
}
|
}
|
||||||
|
|
||||||
if (certReq->attributes != NULL &&
|
if (certReq->attributes != NULL &&
|
||||||
SECOID_FindOIDTag(&(*certReq->attributes)->attrType)
|
certReq->attributes[0] != NULL &&
|
||||||
|
certReq->attributes[0]->attrType.data != NULL &&
|
||||||
|
certReq->attributes[0]->attrType.len > 0 &&
|
||||||
|
SECOID_FindOIDTag(&certReq->attributes[0]->attrType)
|
||||||
== SEC_OID_PKCS9_EXTENSION_REQUEST) {
|
== SEC_OID_PKCS9_EXTENSION_REQUEST) {
|
||||||
rv = CERT_GetCertificateRequestExtensions(certReq, &CRexts);
|
rv = CERT_GetCertificateRequestExtensions(certReq, &CRexts);
|
||||||
if (rv != SECSuccess)
|
if (rv != SECSuccess)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче