b=99083 Polish cert display if field common name (CN) is not present

r=javi sr=alecf
This commit is contained in:
kaie%netscape.com 2002-02-14 07:21:33 +00:00
parent 32308b45c6
commit d4e1d67707

View File

@ -920,6 +920,9 @@ nsNSSCertificate::GetWindowTitle(char * *aWindowTitle)
*aWindowTitle = PL_strdup(mCert->nickname);
} else {
*aWindowTitle = CERT_GetCommonName(&mCert->subject);
if (!*aWindowTitle) {
*aWindowTitle = PL_strdup(mCert->subjectName);
}
}
} else {
NS_ASSERTION(0,"Somehow got nsnull for mCertificate in nsNSSCertificate.");