Fix a line ordering error.
Thanks to Roland Schwarz git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@4194 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
parent
d1d47d44c5
commit
5957c7a880
|
@ -386,9 +386,9 @@ CK_RV C_SetPIN(CK_SESSION_HANDLE hSession,
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
slot = session->slot;
|
||||||
sc_debug(context, SC_LOG_DEBUG_NORMAL, "Changing PIN (session 0x%lx; login user %d)\n", hSession,
|
sc_debug(context, SC_LOG_DEBUG_NORMAL, "Changing PIN (session 0x%lx; login user %d)\n", hSession,
|
||||||
slot->login_user);
|
slot->login_user);
|
||||||
slot = session->slot;
|
|
||||||
|
|
||||||
if (!(session->flags & CKF_RW_SESSION)) {
|
if (!(session->flags & CKF_RW_SESSION)) {
|
||||||
rv = CKR_SESSION_READ_ONLY;
|
rv = CKR_SESSION_READ_ONLY;
|
||||||
|
|
Loading…
Reference in New Issue