summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/mock.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/mock.c b/common/mock.c
index c3f2503..8bd617d 100644
--- a/common/mock.c
+++ b/common/mock.c
@@ -919,6 +919,7 @@ mock_C_OpenSession (CK_SLOT_ID slot_id,
return CKR_SESSION_PARALLEL_NOT_SUPPORTED;
sess = calloc (1, sizeof (Session));
+ return_val_if_fail (sess != NULL, CKR_HOST_MEMORY);
sess->handle = ++unique_identifier;
sess->info.flags = flags;
sess->info.slotID = slot_id;