Fix for crashing Bug 81235, r=ddrinan sr =blizard

Fix for crash on Win32 when enrolling for certificates via the
  crypto.generateCRMFRequest method.
This commit is contained in:
javi%netscape.com 2001-05-16 23:31:56 +00:00
Родитель 2f26b642b4
Коммит 1cbc77c30b
1 изменённых файлов: 5 добавлений и 2 удалений

Просмотреть файл

@ -1440,7 +1440,7 @@ nsCrypto::GenerateCRMFRequest(nsIDOMCRMFObject** aReturn)
//escrow the private key.
//Don't addref this copy. That way ths reference goes away
//at the same the nsIX09Cert ref goes away.
nsNSSCertificate *escrowCert;
nsNSSCertificate *escrowCert = nsnull;
nsCOMPtr<nsIX509Cert> nssCert;
PRBool willEscrow = PR_FALSE;
if (eaCert) {
@ -1690,7 +1690,10 @@ nsP12Runnable::Run()
return NS_OK;
}
nsCryptoRunArgs::nsCryptoRunArgs() {}
nsCryptoRunArgs::nsCryptoRunArgs()
{
NS_INIT_REFCNT();
}
nsCryptoRunArgs::~nsCryptoRunArgs() {}