diff options
author | des <des@FreeBSD.org> | 2014-03-22 15:23:38 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2014-03-22 15:23:38 +0000 |
commit | ab9e0bc08282397f61df5d0ea89a81a2322ec040 (patch) | |
tree | 5186034782b608fd13a7408b5852ad248f6bdc35 /auth1.c | |
parent | 45d0197dd79eceffb5bbc29f75199eb09af5a5f9 (diff) | |
download | FreeBSD-src-ab9e0bc08282397f61df5d0ea89a81a2322ec040.zip FreeBSD-src-ab9e0bc08282397f61df5d0ea89a81a2322ec040.tar.gz |
Vendor import of OpenSSH 6.6p1.
Diffstat (limited to 'auth1.c')
-rw-r--r-- | auth1.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 @@ -129,7 +129,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); @@ -222,7 +222,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); |