summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authordjm <djm@openbsd.org>2013-05-10 03:40:07 +0000
committerdjm <djm@openbsd.org>2013-05-10 03:40:07 +0000
commit65b20112f7d4ca6416b999cb264cb1f38aa61f64 (patch)
tree7b02b45b90d6a0bb0c854646aea95c3b4705206b /usr.bin/ssh/sshconnect2.c
parentwhitespaces (diff)
downloadwireguard-openbsd-65b20112f7d4ca6416b999cb264cb1f38aa61f64.tar.xz
wireguard-openbsd-65b20112f7d4ca6416b999cb264cb1f38aa61f64.zip
fix bzero(ptr_to_struct, sizeof(ptr_to_struct)); bz#2100 from
Colin Watson
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r--usr.bin/ssh/sshconnect2.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index e5fe33e3db7..805348233cc 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect2.c,v 1.194 2013/04/05 00:14:00 djm Exp $ */
+/* $OpenBSD: sshconnect2.c,v 1.195 2013/05/10 03:40:07 djm Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Damien Miller. All rights reserved.
@@ -1403,7 +1403,7 @@ pubkey_prepare(Authctxt *authctxt)
/* If IdentitiesOnly set and key not found then don't use it */
if (!found && options.identities_only) {
TAILQ_REMOVE(&files, id, next);
- bzero(id, sizeof(id));
+ bzero(id, sizeof(*id));
free(id);
}
}