Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ftpd Use explicit_memset(3) instead of memset(3) to ...
details: https://anonhg.NetBSD.org/src/rev/93a6ef5b9ba4
branches: trunk
changeset: 339793:93a6ef5b9ba4
user: shm <shm%NetBSD.org@localhost>
date: Mon Aug 10 07:45:50 2015 +0000
description:
Use explicit_memset(3) instead of memset(3) to clear password
diffstat:
libexec/ftpd/ftpcmd.y | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (27 lines):
diff -r 843a36524957 -r 93a6ef5b9ba4 libexec/ftpd/ftpcmd.y
--- a/libexec/ftpd/ftpcmd.y Mon Aug 10 07:32:49 2015 +0000
+++ b/libexec/ftpd/ftpcmd.y Mon Aug 10 07:45:50 2015 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: ftpcmd.y,v 1.93 2011/09/16 16:13:17 plunky Exp $ */
+/* $NetBSD: ftpcmd.y,v 1.94 2015/08/10 07:45:50 shm Exp $ */
/*-
* Copyright (c) 1997-2009 The NetBSD Foundation, Inc.
@@ -72,7 +72,7 @@
#if 0
static char sccsid[] = "@(#)ftpcmd.y 8.3 (Berkeley) 4/6/94";
#else
-__RCSID("$NetBSD: ftpcmd.y,v 1.93 2011/09/16 16:13:17 plunky Exp $");
+__RCSID("$NetBSD: ftpcmd.y,v 1.94 2015/08/10 07:45:50 shm Exp $");
#endif
#endif /* not lint */
@@ -193,7 +193,7 @@
| PASS SP password CRLF
{
pass($3);
- memset($3, 0, strlen($3));
+ explicit_memset($3, 0, strlen($3));
free($3);
}
Home |
Main Index |
Thread Index |
Old Index