Skip to content

Commit

Permalink
Don't crash if we try to get the name of a non-existant token.
Browse files Browse the repository at this point in the history
  • Loading branch information
relyea%netscape.com committed Apr 18, 2002
1 parent bdef2b2 commit caeb272
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions security/nss/lib/dev/devtoken.c
Expand Up @@ -223,6 +223,9 @@ nssToken_GetName
NSSToken *tok
)
{
if (tok == NULL) {
return "";
}
if (tok->base.name[0] == 0) {
(void) nssSlot_IsTokenPresent(tok->slot);
}
Expand Down

0 comments on commit caeb272

Please sign in to comment.