]> git.ipfire.org Git - thirdparty/openssh-portable.git/commitdiff
upstream: use correct type with sizeof ok djm@
authorjsg@openbsd.org <jsg@openbsd.org>
Thu, 13 Oct 2022 09:09:28 +0000 (09:09 +0000)
committerDamien Miller <djm@mindrot.org>
Mon, 24 Oct 2022 21:55:11 +0000 (08:55 +1100)
OpenBSD-Commit-ID: d6c882c2e8a42ff831a5b3cbc2c961ecb2dd6143

ssh.c

diff --git a/ssh.c b/ssh.c
index e711dbd2793a6524042789e75721e2240d5afe69..21cbd7c3ef806f05e33f5d11e36a429e078e0d2a 100644 (file)
--- a/ssh.c
+++ b/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
@@ -1579,7 +1579,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 { \