fix PSM crash described in bug 120647

This commit is contained in:
ian.mcgreer%sun.com 2002-01-23 03:53:16 +00:00
Родитель 55145c72f7
Коммит 272b2a393b
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -2159,6 +2159,8 @@ PK11_FindCertByIssuerAndSN(PK11SlotInfo **slotPtr, CERTIssuerAndSN *issuerSN,
NSSCryptoContext *cc; NSSCryptoContext *cc;
SECItem *derSerial; SECItem *derSerial;
if (slotPtr) *slotPtr = NULL;
/* PKCS#11 needs to use DER-encoded serial numbers. Create a /* PKCS#11 needs to use DER-encoded serial numbers. Create a
* CERTIssuerAndSN that actually has the encoded value and pass that * CERTIssuerAndSN that actually has the encoded value and pass that
* to PKCS#11 (and the crypto context). * to PKCS#11 (and the crypto context).