Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Bug 1366187, pk11wrap: catch the case where NSSToken is not set, r=kaie
  • Loading branch information
ueno committed May 19, 2017
1 parent f513e39 commit 91ccdc0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/pk11wrap/pk11cert.c
Expand Up @@ -765,7 +765,12 @@ find_certs_from_nickname(const char *nickname, void *wincx)
*delimit = ':';
} else {
slot = PK11_GetInternalKeySlot();
token = nssToken_AddRef(PK11Slot_GetNSSToken(slot));
token = PK11Slot_GetNSSToken(slot);
if (token) {
nssToken_AddRef(token);
} else {
PORT_SetError(SEC_ERROR_NO_TOKEN);
}
}
if (token) {
nssList *certList;
Expand Down

0 comments on commit 91ccdc0

Please sign in to comment.