| Index: nss/lib/pki/pki3hack.c
|
| diff --git a/nss/lib/pki/pki3hack.c b/nss/lib/pki/pki3hack.c
|
| index b145092858774686fb85211d2bf1de5df2fb1c23..4186143e5f66a8c81f1f2295e587c22083628b33 100644
|
| --- a/nss/lib/pki/pki3hack.c
|
| +++ b/nss/lib/pki/pki3hack.c
|
| @@ -830,8 +830,10 @@ fill_CERTCertificateFields(NSSCertificate *c, CERTCertificate *cc, PRBool forced
|
| cc->trust = trust;
|
| CERT_UnlockCertTrust(cc);
|
| }
|
| - nssCryptokiObject_Destroy(instance);
|
| }
|
| + if (instance) {
|
| + nssCryptokiObject_Destroy(instance);
|
| + }
|
| /* database handle is now the trust domain */
|
| cc->dbhandle = c->object.trustDomain;
|
| /* subjectList ? */
|
|
|