summaryrefslogtreecommitdiff
path: root/libexec/ftpd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-18 20:12:46 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-10-18 20:12:46 +0000
commitf994ef81054a0d4f0c062500583e2a7b1a15b56c (patch)
treebe38fa27af31b7734c90a534aa2919d3b1522938 /libexec/ftpd
parentcbf89540ef547c589ec47907e09e0aa2901e5372 (diff)
forget old password nicely
Diffstat (limited to 'libexec/ftpd')
-rw-r--r--libexec/ftpd/ftpd.c3
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);