summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/info.c b/src/info.c
index 0071431..eedf08e 100644
--- a/src/info.c
+++ b/src/info.c
@@ -118,7 +118,7 @@ info_slots(void)
}
/** - Passing too much buffer space. */
- count = p11t_info_slot_ids + 5;
+ count = p11t_info_slot_count + 5;
rv = (p11t_module_funcs->C_GetSlotList)(FALSE, p11t_info_slot_ids, &count);
if(!p11t_check_returns("C_GetSlotList", rv, CKR_OK))
{