summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/session.c2
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);