Skip to content

Commit

Permalink
Bug 1376494 - NULL check argument to PK11_FreeSymKey, r=rrelyea
Browse files Browse the repository at this point in the history
  • Loading branch information
martinthomson committed Aug 21, 2017
1 parent 2479819 commit 77f8cc1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/pk11wrap/pk11skey.c
Expand Up @@ -182,6 +182,10 @@ PK11_FreeSymKey(PK11SymKey *symKey)
PK11SlotInfo *slot;
PRBool freeit = PR_TRUE;

if (!symKey) {
return;
}

if (PR_ATOMIC_DECREMENT(&symKey->refCount) == 0) {
PK11SymKey *parent = symKey->parent;

Expand Down

0 comments on commit 77f8cc1

Please sign in to comment.