mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-22 08:27:31 +09:00
[NSS] revert "sync with https://github.com/roytam1/NSS/tree/NSS_3_48_UXP_BRANCH", this should fix a crash when browsing
This commit is contained in:
parent
4e45ee69e0
commit
24413daff9
23 changed files with 275 additions and 134 deletions
|
|
@ -299,9 +299,15 @@ __CERT_AddTempCertToPerm(CERTCertificate *cert, char *nickname,
|
|||
/* Import the perm instance onto the internal token */
|
||||
slot = PK11_GetInternalKeySlot();
|
||||
internal = PK11Slot_GetNSSToken(slot);
|
||||
if (!internal) {
|
||||
PK11_FreeSlot(slot);
|
||||
PORT_SetError(SEC_ERROR_NO_TOKEN);
|
||||
return SECFailure;
|
||||
}
|
||||
permInstance = nssToken_ImportCertificate(
|
||||
internal, NULL, NSSCertificateType_PKIX, &c->id, stanNick, &c->encoding,
|
||||
&c->issuer, &c->subject, &c->serial, cert->emailAddr, PR_TRUE);
|
||||
(void)nssToken_Destroy(internal);
|
||||
nss_ZFreeIf(stanNick);
|
||||
stanNick = NULL;
|
||||
PK11_FreeSlot(slot);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue