summaryrefslogtreecommitdiff
path: root/scard.c
diff options
context:
space:
mode:
Diffstat (limited to 'scard.c')
-rw-r--r--scard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scard.c b/scard.c
index 7cffc2d4e..c0c22aa73 100644
--- a/scard.c
+++ b/scard.c
@@ -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);