diff options
author | Stefan Walter <stefw@src.gnome.org> | 2009-01-10 03:15:56 +0000 |
---|---|---|
committer | Stefan Walter <stefw@src.gnome.org> | 2009-01-10 03:15:56 +0000 |
commit | dd42bdb01ba9a105cafccea15db46f21b48f6d97 (patch) | |
tree | 67b50d5b79af50c7bdd88b07929d2ae01b8e144c /daemon | |
parent | 05984117f3a262b95fb7b976f566c947177bc931 (diff) |
Fix corner cases and error code problems highlighted by the p11-tests
* daemon/pkcs11/gkr-pkcs11-auth-ep.c:
* pkcs11/plex-layer/gck-plex-layer.c:
* pkcs11/rpc-layer/gck-rpc-dispatch.c:
* pkcs11/rpc-layer/gck-rpc-message.c:
* pkcs11/rpc-layer/gck-rpc-module.c: Fix corner cases and error code
problems highlighted by the p11-tests tool.
svn path=/trunk/; revision=1456
Diffstat (limited to 'daemon')
-rw-r--r-- | daemon/pkcs11/gkr-pkcs11-auth-ep.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/daemon/pkcs11/gkr-pkcs11-auth-ep.c b/daemon/pkcs11/gkr-pkcs11-auth-ep.c index 7846f5f6..e9d7e411 100644 --- a/daemon/pkcs11/gkr-pkcs11-auth-ep.c +++ b/daemon/pkcs11/gkr-pkcs11-auth-ep.c @@ -545,7 +545,7 @@ auth_C_EncryptInit (CK_SESSION_HANDLE handle, CK_MECHANISM_PTR mechanism, } } - return CKR_OK; + return rv; } static CK_RV @@ -684,7 +684,7 @@ auth_C_SignInit (CK_SESSION_HANDLE handle, CK_MECHANISM_PTR mechanism, } } - return CKR_OK; + return rv; } static CK_RV @@ -736,7 +736,7 @@ auth_C_SignRecoverInit (CK_SESSION_HANDLE handle, CK_MECHANISM_PTR mechanism, } } - return CKR_OK; + return rv; } static CK_RV @@ -770,7 +770,7 @@ auth_C_VerifyInit (CK_SESSION_HANDLE handle, CK_MECHANISM_PTR mechanism, } } - return CKR_OK; + return rv; } static CK_RV |