summaryrefslogtreecommitdiff
path: root/ssh-pkcs11.c
diff options
context:
space:
mode:
Diffstat (limited to 'ssh-pkcs11.c')
-rw-r--r--ssh-pkcs11.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c
index c3a112fa1..f4971ad8a 100644
--- a/ssh-pkcs11.c
+++ b/ssh-pkcs11.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: ssh-pkcs11.c,v 1.17 2015/02/03 08:07:20 deraadt Exp $ */ 1/* $OpenBSD: ssh-pkcs11.c,v 1.18 2015/04/24 01:36:01 deraadt Exp $ */
2/* 2/*
3 * Copyright (c) 2010 Markus Friedl. All rights reserved. 3 * Copyright (c) 2010 Markus Friedl. All rights reserved.
4 * 4 *
@@ -527,7 +527,7 @@ pkcs11_fetch_keys_filter(struct pkcs11_provider *p, CK_ULONG slotidx,
527 sshkey_free(key); 527 sshkey_free(key);
528 } else { 528 } else {
529 /* expand key array and add key */ 529 /* expand key array and add key */
530 *keysp = xrealloc(*keysp, *nkeys + 1, 530 *keysp = xreallocarray(*keysp, *nkeys + 1,
531 sizeof(struct sshkey *)); 531 sizeof(struct sshkey *));
532 (*keysp)[*nkeys] = key; 532 (*keysp)[*nkeys] = key;
533 *nkeys = *nkeys + 1; 533 *nkeys = *nkeys + 1;