diff options
Diffstat (limited to 'ssh-pkcs11.c')
-rw-r--r-- | ssh-pkcs11.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ssh-pkcs11.c b/ssh-pkcs11.c index ea97508f1..b37491c5d 100644 --- a/ssh-pkcs11.c +++ b/ssh-pkcs11.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: ssh-pkcs11.c,v 1.24 2017/05/30 14:15:17 markus Exp $ */ | 1 | /* $OpenBSD: ssh-pkcs11.c,v 1.25 2017/05/31 09:15:42 deraadt Exp $ */ |
2 | /* | 2 | /* |
3 | * Copyright (c) 2010 Markus Friedl. All rights reserved. | 3 | * Copyright (c) 2010 Markus Friedl. All rights reserved. |
4 | * | 4 | * |
@@ -546,8 +546,8 @@ pkcs11_fetch_keys_filter(struct pkcs11_provider *p, CK_ULONG slotidx, | |||
546 | sshkey_free(key); | 546 | sshkey_free(key); |
547 | } else { | 547 | } else { |
548 | /* expand key array and add key */ | 548 | /* expand key array and add key */ |
549 | *keysp = xreallocarray(*keysp, *nkeys + 1, | 549 | *keysp = xrecallocarray(*keysp, *nkeys, |
550 | sizeof(struct sshkey *)); | 550 | *nkeys + 1, sizeof(struct sshkey *)); |
551 | (*keysp)[*nkeys] = key; | 551 | (*keysp)[*nkeys] = key; |
552 | *nkeys = *nkeys + 1; | 552 | *nkeys = *nkeys + 1; |
553 | debug("have %d keys", *nkeys); | 553 | debug("have %d keys", *nkeys); |