diff options
author | 2014-02-02 03:44:31 +0000 | |
---|---|---|
committer | 2014-02-02 03:44:31 +0000 | |
commit | c671dcf14e079a1b6525a1f57647ad96afd7b3f0 (patch) | |
tree | 2c346b9f1e36ecacfa7b237ca21c54a6daf3a369 /usr.bin/ssh/auth1.c | |
parent | drm/i915/dp: increase i2c-over-aux retry interval on AUX DEFER (diff) | |
download | wireguard-openbsd-c671dcf14e079a1b6525a1f57647ad96afd7b3f0.tar.xz wireguard-openbsd-c671dcf14e079a1b6525a1f57647ad96afd7b3f0.zip |
convert memset of potentially-private data to explicit_bzero()
Diffstat (limited to 'usr.bin/ssh/auth1.c')
-rw-r--r-- | usr.bin/ssh/auth1.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/usr.bin/ssh/auth1.c b/usr.bin/ssh/auth1.c index eac5ad7a91d..6d01c52e637 100644 --- a/usr.bin/ssh/auth1.c +++ b/usr.bin/ssh/auth1.c @@ -1,4 +1,4 @@ -/* $OpenBSD: auth1.c,v 1.79 2013/05/19 02:42:42 djm Exp $ */ +/* $OpenBSD: auth1.c,v 1.80 2014/02/02 03:44:31 djm Exp $ */ /* * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland * All rights reserved @@ -122,7 +122,7 @@ auth1_process_password(Authctxt *authctxt) /* Try authentication with the password. */ authenticated = PRIVSEP(auth_password(authctxt, password)); - memset(password, 0, dlen); + explicit_bzero(password, dlen); free(password); return (authenticated); @@ -217,7 +217,7 @@ auth1_process_tis_response(Authctxt *authctxt) response = packet_get_string(&dlen); packet_check_eom(); authenticated = verify_response(authctxt, response); - memset(response, 'r', dlen); + explicit_bzero(response, dlen); free(response); return (authenticated); |