summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authortedu <tedu@openbsd.org>2014-01-31 16:39:19 +0000
committertedu <tedu@openbsd.org>2014-01-31 16:39:19 +0000
commit69881b76d0c289ef55f1413f12e4edc540897517 (patch)
treea580c269d7cb29b6f8a93163294a60c915fbdb55 /usr.bin/ssh/sshconnect2.c
parent@md5 annotations died at the end of 2008, so it's reasonable to scrape the (diff)
downloadwireguard-openbsd-69881b76d0c289ef55f1413f12e4edc540897517.tar.xz
wireguard-openbsd-69881b76d0c289ef55f1413f12e4edc540897517.zip
replace most bzero with explicit_bzero, except a few that cna be memset
ok djm dtucker
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 00cc89033d8..85c6717b6fa 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sshconnect2.c,v 1.202 2014/01/29 06:18:35 djm Exp $ */
+/* $OpenBSD: sshconnect2.c,v 1.203 2014/01/31 16:39:19 tedu Exp $ */
/*
* Copyright (c) 2000 Markus Friedl. All rights reserved.
* Copyright (c) 2008 Damien Miller. All rights reserved.
@@ -1184,7 +1184,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));
+ explicit_bzero(id, sizeof(*id));
free(id);
}
}