Bug 291555. Makes certutil process null CSR ext req lists as it did before NSS3.10. r=nelson

This commit is contained in:
neil.williams%sun.com 2005-04-23 03:58:19 +00:00
parent b902d005c2
commit b2e194a3d0

View File

@ -268,7 +268,7 @@ CERT_FinishCertificateRequestAttributes(CERTCertificateRequest *req)
PORT_SetError(SEC_ERROR_INVALID_ARGS);
return SECFailure;
}
if (req->attributes == NULL)
if (req->attributes == NULL || req->attributes[0] == NULL)
return SECSuccess;
extlist = SEC_ASN1EncodeItem(req->arena, NULL, &req->attributes,