diff options
author | Stef Walter <stef@thewalter.net> | 2014-09-09 14:15:31 +0200 |
---|---|---|
committer | Stef Walter <stef@thewalter.net> | 2014-09-09 14:17:38 +0200 |
commit | a3667b173de0caff684fc4591fabdfb5feb65060 (patch) | |
tree | 3966a0a5579d050d4a882ffaee5ff0e91a36c430 | |
parent | 69d376dffb0169bb3a751bef29bd0312c70b60b2 (diff) | |
download | p11-kit-a3667b173de0caff684fc4591fabdfb5feb65060.tar.gz |
p11-kit: Compilation fixes for previous commit
Pushed the wrong version
-rw-r--r-- | p11-kit/proxy.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/p11-kit/proxy.c b/p11-kit/proxy.c index 5358194..3e76f15 100644 --- a/p11-kit/proxy.c +++ b/p11-kit/proxy.c @@ -186,8 +186,6 @@ map_session_to_real (Proxy *px, static void proxy_free (Proxy *py) { - int i; - if (py) { p11_kit_modules_finalize (py->inited); free (py->inited); @@ -281,7 +279,6 @@ proxy_create (Proxy **res) { CK_FUNCTION_LIST_PTR *f; CK_FUNCTION_LIST_PTR funcs; - CK_FUNCTION_LIST **modules; CK_SLOT_ID_PTR slots; CK_ULONG i, count; CK_RV rv = CKR_OK; @@ -291,7 +288,7 @@ proxy_create (Proxy **res) return_val_if_fail (py != NULL, CKR_HOST_MEMORY); py->inited = modules_dup (all_modules); - return_val_if_fail (modules != NULL, CKR_HOST_MEMORY); + return_val_if_fail (py->inited != NULL, CKR_HOST_MEMORY); rv = p11_kit_modules_initialize (py->inited, NULL); |