Bug 157750: handle the possibility that some certs do not have a label.

This commit is contained in:
wtc%netscape.com 2002-07-16 21:13:40 +00:00
Родитель 0a2fdfb410
Коммит b9861f3df6
1 изменённых файлов: 2 добавлений и 2 удалений

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

@ -405,7 +405,7 @@ pk11_isID0(PK11SlotInfo *slot, CK_OBJECT_HANDLE certID)
* Create an NSSCertificate from a slot/certID pair, return it as a
* CERTCertificate.
*/
CERTCertificate
static CERTCertificate
*pk11_fastCert(PK11SlotInfo *slot, CK_OBJECT_HANDLE certID,
CK_ATTRIBUTE *privateLabel, char **nickptr)
{
@ -437,7 +437,7 @@ CERTCertificate
}
/* Build the old-fashioned nickname */
if (nickptr) {
if ((nickptr) && (co->label)) {
CK_ATTRIBUTE label, id;
label.type = CKA_LABEL;
label.pValue = co->label;