Bug 1047210, fix allocation in pkix_pl_CrlDp_Create, r=kaie
authorSachin Kumar Gupta <s.k.gupta@samsung.com>
Tue, 05 Aug 2014 00:46:44 +0200
changeset 11212 11fcf4476c5f1a504db1dcb02c0715e55e1bf24b
parent 11211 791617b5572a4195f9839e429748dba05c1d970e
child 11213 6d1763a7555e6a552261d7f056de650b99b66c57
push id449
push userkaie@kuix.de
push dateMon, 04 Aug 2014 22:46:53 +0000
reviewerskaie
bugs1047210
Bug 1047210, fix allocation in pkix_pl_CrlDp_Create, r=kaie
lib/libpkix/pkix_pl_nss/pki/pkix_pl_crldp.c
--- a/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crldp.c
+++ b/lib/libpkix/pkix_pl_nss/pki/pkix_pl_crldp.c
@@ -117,17 +117,17 @@ pkix_pl_CrlDp_Create(
             issuerName = &dp->crlIssuer->name.directoryName;
         } else {
             issuerName = certIssuerName;
         }
         rdnArena = PORT_NewArena(DER_DEFAULT_CHUNKSIZE);
         if (!rdnArena) {
             PKIX_ERROR(PKIX_PORTARENAALLOCFAILED);
         }
-        issuerNameCopy = (CERTName *)PORT_ArenaZNew(rdnArena, CERTName*);
+        issuerNameCopy = (CERTName *)PORT_ArenaZNew(rdnArena, CERTName);
         if (!issuerNameCopy) {
             PKIX_ERROR(PKIX_ALLOCERROR);
         }
         rv = CERT_CopyName(rdnArena, issuerNameCopy, (CERTName*)issuerName);
         if (rv == SECFailure) {
             PKIX_ERROR(PKIX_ALLOCERROR);
         }
         rv = CERT_AddRDN(issuerNameCopy, (CERTRDN*)relName);