diff options
author | Stef Walter <stef@memberwebs.com> | 2009-11-13 04:28:31 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2009-11-13 04:28:31 +0000 |
commit | 58edc20b2fcbf24d1ad484a9a6a22d2450f8ab7d (patch) | |
tree | b084cf2aa834619000bdbe40fd09fae0502908e2 /src | |
parent | 68bc026d96ee568bf47745ee59035c8f9200179e (diff) |
Close all sessions before trying to log in as SO.
Diffstat (limited to 'src')
-rw-r--r-- | src/session.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/session.c b/src/session.c index 6c3b4b1..db3ad47 100644 --- a/src/session.c +++ b/src/session.c @@ -127,6 +127,8 @@ test_session_so_login(CK_SLOT_ID slot) CK_ULONG n_pin; CK_RV rv; + (p11t_module_funcs->C_CloseAllSessions) (slot); + pin = p11t_session_get_pin (slot, CKU_SO, &n_pin); rv = (p11t_module_funcs->C_OpenSession)(slot, CKF_SERIAL_SESSION | CKF_RW_SESSION, NULL, NULL, &session_rw); |