artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cdb36dd
)
freezero() can be used here
author
deraadt
<deraadt@openbsd.org>
Mon, 17 Apr 2017 21:48:26 +0000
(21:48 +0000)
committer
deraadt
<deraadt@openbsd.org>
Mon, 17 Apr 2017 21:48:26 +0000
(21:48 +0000)
libexec/ftpd/monitor.c
patch
|
blob
|
history
diff --git
a/libexec/ftpd/monitor.c
b/libexec/ftpd/monitor.c
index
04b1e3f
..
9a2fbc5
100644
(file)
--- a/
libexec/ftpd/monitor.c
+++ b/
libexec/ftpd/monitor.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: monitor.c,v 1.2
4 2016/04/25 15:43:34
deraadt Exp $ */
+/* $OpenBSD: monitor.c,v 1.2
5 2017/04/17 21:48:26
deraadt Exp $ */
/*
* Copyright (c) 2004 Moritz Jodeit <moritz@openbsd.org>
@@
-284,8
+284,7
@@
handle_cmds(void)
preauth_slave_pid = slave_pid;
auth = pass(pw);
- explicit_bzero(pw, len);
- free(pw);
+ freezero(pw, len);
switch (auth) {
case AUTH_FAILED: