diff --git a/security/nss/lib/certhigh/certreq.c b/security/nss/lib/certhigh/certreq.c index 300f153530a1..9240677800e7 100644 --- a/security/nss/lib/certhigh/certreq.c +++ b/security/nss/lib/certhigh/certreq.c @@ -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,