diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-18 20:12:46 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 1996-10-18 20:12:46 +0000 |
commit | f994ef81054a0d4f0c062500583e2a7b1a15b56c (patch) | |
tree | be38fa27af31b7734c90a534aa2919d3b1522938 /libexec/ftpd | |
parent | cbf89540ef547c589ec47907e09e0aa2901e5372 (diff) |
forget old password nicely
Diffstat (limited to 'libexec/ftpd')
-rw-r--r-- | libexec/ftpd/ftpd.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/ftpd/ftpd.c b/libexec/ftpd/ftpd.c index fb032b5e642..460dae3d0aa 100644 --- a/libexec/ftpd/ftpd.c +++ b/libexec/ftpd/ftpd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ftpd.c,v 1.22 1996/10/15 12:29:27 deraadt Exp $ */ +/* $OpenBSD: ftpd.c,v 1.23 1996/10/18 20:12:45 deraadt Exp $ */ /* $NetBSD: ftpd.c,v 1.15 1995/06/03 22:46:47 mycroft Exp $ */ /* @@ -529,6 +529,7 @@ sgetpwnam(name) return (p); if (save.pw_name) { free(save.pw_name); + memset(save.pw_passwd, 0, strlen(save.pw_passwd); free(save.pw_passwd); free(save.pw_gecos); free(save.pw_dir); |