Bug 1047210, fix allocation in pkix_pl_CrlDp_Create, r=kaie NSS_3_16_3_PLUS_BRANCH
authorSachin Kumar Gupta <s.k.gupta@samsung.com>
Tue, 05 Aug 2014 00:46:44 +0200
branchNSS_3_16_3_PLUS_BRANCH
changeset 11214 497022ada1eae8de88ed1404b1ba69a82f6c77ec
parent 11203 9a9e44ffa7cfc61323802dbab8111e23499cb7fa
child 11215 354504312e4d1faee86990540313633da9b48650
push id451
push userkaie@kuix.de
push dateTue, 05 Aug 2014 13:16:51 +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);