From b2e194a3d0a2abb293c77b91f4faa44ab2756d5d Mon Sep 17 00:00:00 2001 From: "neil.williams%sun.com" Date: Sat, 23 Apr 2005 03:58:19 +0000 Subject: [PATCH] Bug 291555. Makes certutil process null CSR ext req lists as it did before NSS3.10. r=nelson --- security/nss/lib/certhigh/certreq.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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,