Bug 379190, crashes when loading chrome urls
r=rrelyea, a=dveditz git-svn-id: svn://10.0.0.236/branches/MOZILLA_1_8_BRANCH@228703 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -140,11 +140,15 @@ nsNSSCertificateDB::FindCertByDBKey(const char *aDBkey, nsISupports *aToken,
|
||||
CERTIssuerAndSN issuerSN;
|
||||
unsigned long moduleID,slotID;
|
||||
*_cert = nsnull;
|
||||
if (!aDBkey) return NS_ERROR_FAILURE;
|
||||
if (!aDBkey || !*aDBkey)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
dummy = NSSBase64_DecodeBuffer(nsnull, &keyItem, aDBkey,
|
||||
(PRUint32)PL_strlen(aDBkey));
|
||||
CERTCertificate *cert;
|
||||
if (!dummy)
|
||||
return NS_ERROR_FAILURE;
|
||||
|
||||
CERTCertificate *cert;
|
||||
// someday maybe we can speed up the search using the moduleID and slotID
|
||||
moduleID = NS_NSS_GET_LONG(keyItem.data);
|
||||
slotID = NS_NSS_GET_LONG(&keyItem.data[NS_NSS_LONG]);
|
||||
|
||||
Reference in New Issue
Block a user