Skip to content

Commit

Permalink
11153 pkcs11_softtoken: NULL pointer errors
Browse files Browse the repository at this point in the history
Reviewed by: Jason Lippert <jason@glasspelican.ca>
Approved by: Dan McDonald <danmcd@joyent.com>
  • Loading branch information
tsoome committed Jun 25, 2019
1 parent 798d97d commit 4b788a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion usr/src/lib/pkcs11/pkcs11_softtoken/common/softObject.c
Expand Up @@ -239,7 +239,7 @@ C_DestroyObject(CK_SESSION_HANDLE hSession, CK_OBJECT_HANDLE hObject)
/* Obtain the session handle which object belongs to. */
creating_session = object_p->session_handle;

if (creating_session == NULL) {
if (creating_session == 0) {
/*
* This is a token object to be deleted.
* For token object, there is no creating session concept,
Expand Down

0 comments on commit 4b788a9

Please sign in to comment.