summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect.c
diff options
context:
space:
mode:
authordtucker <dtucker@openbsd.org>2020-11-20 02:14:16 +0000
committerdtucker <dtucker@openbsd.org>2020-11-20 02:14:16 +0000
commita05f47b999e3e8cea70c69843d26609873b84f20 (patch)
tree39e5226af4820696af2897f1a8c4495a378548be /usr.bin/ssh/sshconnect.c
parentdraft-ietf-secsh-architecture is now RFC4251. (diff)
downloadwireguard-openbsd-a05f47b999e3e8cea70c69843d26609873b84f20.tar.xz
wireguard-openbsd-a05f47b999e3e8cea70c69843d26609873b84f20.zip
Explicitly initialize all members of the find_by_key_ctx struct. Initializing
a single member should be enough (the spec says the remainder should be initialized as per the static rules) but some GCCs warn on this which prevents us testing with -Werror on those. ok deraadt@ djm@
Diffstat (limited to 'usr.bin/ssh/sshconnect.c')
-rw-r--r--usr.bin/ssh/sshconnect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect.c b/usr.bin/ssh/sshconnect.c
index b6e54382830..5d088635f9e 100644
--- a/usr.bin/ssh/sshconnect.c
+++ b/usr.bin/ssh/sshconnect.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect.c,v 1.342 2020/11/12 22:56:00 djm Exp $ */
+/* $OpenBSD: sshconnect.c,v 1.343 2020/11/20 02:14:16 dtucker Exp $ */
/*
* Author: Tatu Ylonen <ylo@cs.hut.fi>
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -751,7 +751,7 @@ hostkeys_find_by_key(const char *host, const char *ip, const struct sshkey *key,
char **system_hostfiles, u_int num_system_hostfiles,
char ***names, u_int *nnames)
{
- struct find_by_key_ctx ctx = {0};
+ struct find_by_key_ctx ctx = {0, 0, 0, 0, 0};
u_int i;
*names = NULL;