summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStef Walter <stef@thewalter.net>2014-09-09 14:15:31 +0200
committerStef Walter <stef@thewalter.net>2014-09-09 14:15:31 +0200
commit4dd71231c7b425c44ca231c6c7b1df97545d1501 (patch)
treec0d325ba0a982bf450512f8d227927222f901d8a
parent50e4702e6c94aeb3c9096661a78f59db96c86226 (diff)
downloadp11-kit-4dd71231c7b425c44ca231c6c7b1df97545d1501.tar.gz
p11-kit: Compilation fixes for previous commit
Pushed the wrong version
-rw-r--r--p11-kit/proxy.c5
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);