summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--p11-kit/proxy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/p11-kit/proxy.c b/p11-kit/proxy.c
index 77e70c0..ad3caa5 100644
--- a/p11-kit/proxy.c
+++ b/p11-kit/proxy.c
@@ -645,7 +645,7 @@ proxy_C_CloseAllSessions (CK_X_FUNCTION_LIST *self,
p11_dict_iterate (state->px->sessions, &iter);
count = 0;
while (p11_dict_next (&iter, NULL, (void**)&sess)) {
- if (sess->wrap_slot == id && to_close)
+ if (sess->wrap_slot == id)
to_close[count++] = sess->wrap_session;
}
}