Fix bug 87694: pk11ListCertCallback assumes cert nickname is non-null.

Reviewed by relyea.
This commit is contained in:
nicolson%netscape.com 2001-06-25 20:46:04 +00:00
parent 7481a570da
commit e9d5c0c50b

View File

@ -2654,7 +2654,7 @@ pk11ListCertCallback(CERTCertificate *cert, SECItem *derCert, void *arg)
isUnique = PR_TRUE;
}
/* at this point the nickname is correct for the cert. save it for later */
if (!isUnique) {
if (!isUnique && cert->nickname) {
nickname = PORT_ArenaStrdup(listCertP->certList->arena,cert->nickname);
}
if (derCert == NULL) {