use correct type with sizeof
authorjsg <jsg@openbsd.org>
Thu, 13 Oct 2022 09:09:28 +0000 (09:09 +0000)
committerjsg <jsg@openbsd.org>
Thu, 13 Oct 2022 09:09:28 +0000 (09:09 +0000)
ok djm@

usr.bin/ssh/ssh.c

index 1c40b50..c4860fd 100644 (file)
@@ -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 { \