diff options
author | 2015-04-24 01:36:00 +0000 | |
---|---|---|
committer | 2015-04-24 01:36:00 +0000 | |
commit | e3b4f072510741cebbf90dcbdca1b00464b0e33c (patch) | |
tree | a66dbb091600eb0a92695b64d0e53d6e21c72901 /usr.bin/ssh/ssh-pkcs11.c | |
parent | Replace atoi() usage with strtonum(). OK deraadt@ (diff) | |
download | wireguard-openbsd-e3b4f072510741cebbf90dcbdca1b00464b0e33c.tar.xz wireguard-openbsd-e3b4f072510741cebbf90dcbdca1b00464b0e33c.zip |
rename xrealloc() to xreallocarray() since it follows that form.
ok djm
Diffstat (limited to 'usr.bin/ssh/ssh-pkcs11.c')
-rw-r--r-- | usr.bin/ssh/ssh-pkcs11.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh-pkcs11.c b/usr.bin/ssh/ssh-pkcs11.c index 293c562d9c8..561969e7fab 100644 --- a/usr.bin/ssh/ssh-pkcs11.c +++ b/usr.bin/ssh/ssh-pkcs11.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh-pkcs11.c,v 1.17 2015/02/03 08:07:20 deraadt Exp $ */ +/* $OpenBSD: ssh-pkcs11.c,v 1.18 2015/04/24 01:36:01 deraadt Exp $ */ /* * Copyright (c) 2010 Markus Friedl. All rights reserved. * @@ -516,7 +516,7 @@ pkcs11_fetch_keys_filter(struct pkcs11_provider *p, CK_ULONG slotidx, sshkey_free(key); } else { /* expand key array and add key */ - *keysp = xrealloc(*keysp, *nkeys + 1, + *keysp = xreallocarray(*keysp, *nkeys + 1, sizeof(struct sshkey *)); (*keysp)[*nkeys] = key; *nkeys = *nkeys + 1; |