summaryrefslogtreecommitdiff
path: root/libexec/ftpd/ftpcmd.y
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-17 21:49:02 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2017-04-17 21:49:02 +0000
commitb58a29d0d30f23eed34923ae00a6a8a8499a5c94 (patch)
treeca07d2db64b54174886b7398c1fb12c0a1af7490 /libexec/ftpd/ftpcmd.y
parent1bc7e3dd763689d5e954da7e022a14fc09bee906 (diff)
memset() of password field should be explicit_bzero().
[Not using freezero() in yacc files yet]
Diffstat (limited to 'libexec/ftpd/ftpcmd.y')
-rw-r--r--libexec/ftpd/ftpcmd.y4
1 files changed, 2 insertions, 2 deletions
diff --git a/libexec/ftpd/ftpcmd.y b/libexec/ftpd/ftpcmd.y
index b8bce1930b4..36d9824a9ce 100644
--- a/libexec/ftpd/ftpcmd.y
+++ b/libexec/ftpd/ftpcmd.y
@@ -1,4 +1,4 @@
-/* $OpenBSD: ftpcmd.y,v 1.64 2016/08/26 06:32:10 tedu Exp $ */
+/* $OpenBSD: ftpcmd.y,v 1.65 2017/04/17 21:49:01 deraadt Exp $ */
/* $NetBSD: ftpcmd.y,v 1.7 1996/04/08 19:03:11 jtc Exp $ */
/*
@@ -157,7 +157,7 @@ cmd
| PASS SP password CRLF
{
quit = monitor_pass($3);
- memset($3, 0, strlen($3));
+ explicit_bzero($3, strlen($3));
free($3);
/* Terminate unprivileged pre-auth slave */