Don't crash if we try to get the name of a non-existant token.
git-svn-id: svn://10.0.0.236/trunk@119278 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
*/
|
||||
|
||||
#ifdef DEBUG
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: devtoken.c,v $ $Revision: 1.13 $ $Date: 2002-04-18 17:29:54 $ $Name: not supported by cvs2svn $";
|
||||
static const char CVS_ID[] = "@(#) $RCSfile: devtoken.c,v $ $Revision: 1.14 $ $Date: 2002-04-18 17:54:30 $ $Name: not supported by cvs2svn $";
|
||||
#endif /* DEBUG */
|
||||
|
||||
#ifndef NSSCKEPV_H
|
||||
@@ -223,6 +223,9 @@ nssToken_GetName
|
||||
NSSToken *tok
|
||||
)
|
||||
{
|
||||
if (tok == NULL) {
|
||||
return "";
|
||||
}
|
||||
if (tok->base.name[0] == 0) {
|
||||
(void) nssSlot_IsTokenPresent(tok->slot);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user