From a14ff781ebf231daa99990fd65c2312f26db93a8 Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Tue, 19 Feb 2013 13:51:32 +0100 Subject: Manage C_CloseAllSessions function for multiple callers Make C_CloseAllSessions work for different callers. Track the sessions that each caller opens and close just those when C_CloseAllSessiosn is called. --- common/mock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'common') diff --git a/common/mock.c b/common/mock.c index 1a6657c..f1d1c03 100644 --- a/common/mock.c +++ b/common/mock.c @@ -1048,7 +1048,7 @@ mock_C_GetSessionInfo (CK_SESSION_HANDLE session, return_val_if_fail (info != NULL, CKR_ARGUMENTS_BAD); sess = p11_dict_get (the_sessions, handle_to_pointer (session)); - if (!session) + if (!sess) return CKR_SESSION_HANDLE_INVALID; if (logged_in) { -- cgit v1.1