diff options
Diffstat (limited to 'lib/pkcs11.c')
-rw-r--r-- | lib/pkcs11.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/pkcs11.c b/lib/pkcs11.c index 26d88e51a8..9ca9863b43 100644 --- a/lib/pkcs11.c +++ b/lib/pkcs11.c @@ -2508,12 +2508,11 @@ pkcs11_login(struct pkcs11_session_info *sinfo, _gnutls_debug_log("p11: Login result = %lu\n", rv); - ret = (rv == CKR_OK || rv == CKR_USER_ALREADY_LOGGED_IN) ? 0 : pkcs11_rv_to_err(rv); - cleanup: + cleanup: return ret; } |