diff options
author | Stef Walter <stefw@gnome.org> | 2013-02-19 13:51:32 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-05-21 10:47:53 +0200 |
commit | a14ff781ebf231daa99990fd65c2312f26db93a8 (patch) | |
tree | dbac181a2243c92f72c1b84a6306517969590e09 /common | |
parent | 0cb1132469c1e13be64f85cd6566e6617bfe32cc (diff) |
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.
Diffstat (limited to 'common')
-rw-r--r-- | common/mock.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |