mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-27 12:15:33 +00:00
Fix bug 87694: pk11ListCertCallback assumes cert nickname is non-null.
Reviewed by relyea.
This commit is contained in:
parent
7481a570da
commit
e9d5c0c50b
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user