Bug 465974: fix firefox crash at startup due to weave using nss without initializing it

This commit is contained in:
Dan Mills 2008-11-28 00:33:53 +09:00
parent 336e1168af
commit cb119538ba

View File

@ -63,6 +63,8 @@ WeaveCrypto::WeaveCrypto() :
mAlgorithm(SEC_OID_AES_256_CBC),
mKeypairBits(2048)
{
// Ensure that PSM (and thus NSS) is initialized.
nsCOMPtr<nsISupports> psm(nsGetServiceByContractID("@mozilla.org/psm;1"));
}
WeaveCrypto::~WeaveCrypto()