diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-10-13 09:09:29 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-10-13 09:09:29 +0000 |
commit | af96a729437a7553987f7889bb6f5f4e0dd3045b (patch) | |
tree | b769820a271e08e84d0fa6965cf93706bb137764 /usr.bin | |
parent | 75bdd9c7714d03a0b9bc13e5dd68e15a1d1017a6 (diff) |
use correct type with sizeof
ok djm@
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/ssh/ssh.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/ssh.c b/usr.bin/ssh/ssh.c index 1c40b5075b9..c4860fdd43a 100644 --- a/usr.bin/ssh/ssh.c +++ b/usr.bin/ssh/ssh.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ssh.c,v 1.577 2022/10/06 22:42:37 djm Exp $ */ +/* $OpenBSD: ssh.c,v 1.578 2022/10/13 09:09:28 jsg Exp $ */ /* * Author: Tatu Ylonen <ylo@cs.hut.fi> * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland @@ -1558,7 +1558,7 @@ main(int ac, char **av) if (options.hostbased_authentication) { sensitive_data.nkeys = 10; sensitive_data.keys = xcalloc(sensitive_data.nkeys, - sizeof(struct sshkey)); + sizeof(*sensitive_data.keys)); /* XXX check errors? */ #define L_PUBKEY(p,o) do { \ |