diff options
author | Toomas Soome <tsoome@me.com> | 2019-01-22 13:27:40 +0200 |
---|---|---|
committer | Toomas Soome <tsoome@me.com> | 2019-06-25 23:24:58 +0300 |
commit | 4b788a9f64f8a617e410f058ca415898b54c3ab9 (patch) | |
tree | fcd6c819adcd774af90e592adb7d08f4294fb245 | |
parent | 798d97d364cf412f7586e489b227851115381696 (diff) | |
download | illumos-joyent-4b788a9f64f8a617e410f058ca415898b54c3ab9.tar.gz |
11153 pkcs11_softtoken: NULL pointer errors
Reviewed by: Jason Lippert <jason@glasspelican.ca>
Approved by: Dan McDonald <danmcd@joyent.com>
-rw-r--r-- | usr/src/lib/pkcs11/pkcs11_softtoken/common/softObject.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/usr/src/lib/pkcs11/pkcs11_softtoken/common/softObject.c b/usr/src/lib/pkcs11/pkcs11_softtoken/common/softObject.c index d2b65716fe..d5aae80910 100644 --- a/usr/src/lib/pkcs11/pkcs11_softtoken/common/softObject.c +++ b/usr/src/lib/pkcs11/pkcs11_softtoken/common/softObject.c @@ -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, |