From 13277e65d5941a71891eaabec693dbba57c2b496 Mon Sep 17 00:00:00 2001 From: "wtchang%redhat.com" Date: Fri, 8 Jul 2005 17:06:15 +0000 Subject: [PATCH] Bugzilla bug 300068: fixed the bug that "collection" is used uninitialized if "td", "c", or "cc" is NULL. The patch is contributed by Wolfgang Rosenauer . r=wtc. --- security/nss/lib/pki/certificate.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/security/nss/lib/pki/certificate.c b/security/nss/lib/pki/certificate.c index 9a5facc41fd..22686bf99f8 100644 --- a/security/nss/lib/pki/certificate.c +++ b/security/nss/lib/pki/certificate.c @@ -35,7 +35,7 @@ * ***** END LICENSE BLOCK ***** */ #ifdef DEBUG -static const char CVS_ID[] = "@(#) $RCSfile: certificate.c,v $ $Revision: 1.55 $ $Date: 2005-06-28 17:55:29 $"; +static const char CVS_ID[] = "@(#) $RCSfile: certificate.c,v $ $Revision: 1.56 $ $Date: 2005-07-08 17:06:15 $"; #endif /* DEBUG */ #ifndef NSSPKI_H @@ -481,7 +481,7 @@ nssCertificate_BuildChain ( { NSSCertificate **rvChain = NULL; NSSUsage issuerUsage = *usage; - nssPKIObjectCollection *collection; + nssPKIObjectCollection *collection = NULL; PRUint32 rvCount = 0; PRStatus st; PRStatus ret = PR_SUCCESS;