diff options
Diffstat (limited to 'scard.c')
-rw-r--r-- | scard.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -382,7 +382,7 @@ sc_get_keys(const char *id, const char *pin) | |||
382 | key_free(k); | 382 | key_free(k); |
383 | return NULL; | 383 | return NULL; |
384 | } | 384 | } |
385 | keys = xmalloc((nkeys+1) * sizeof(Key *)); | 385 | keys = xcalloc((nkeys+1), sizeof(Key *)); |
386 | 386 | ||
387 | n = key_new(KEY_RSA1); | 387 | n = key_new(KEY_RSA1); |
388 | BN_copy(n->rsa->n, k->rsa->n); | 388 | BN_copy(n->rsa->n, k->rsa->n); |