summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneil.williams%sun.com <devnull@localhost>2005-04-23 03:58:19 +0000
committerneil.williams%sun.com <devnull@localhost>2005-04-23 03:58:19 +0000
commit2dd4b9ec27f467897610381647ec0ff95c0ef20d (patch)
tree9fa4686168c398b6e81c6f15720d8d8a18514e90
parentf731c3ac29a3716106c29e4fa98dee3196e97a4d (diff)
downloadnss-hg-2dd4b9ec27f467897610381647ec0ff95c0ef20d.tar.gz
Bug 291555. Makes certutil process null CSR ext req lists as it did before NSS3.10. r=nelsonSECURITY_3_10_RTM
-rw-r--r--security/nss/lib/certhigh/certreq.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/security/nss/lib/certhigh/certreq.c b/security/nss/lib/certhigh/certreq.c
index 300f15353..924067780 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,