From e4c28d58af19123b34a52e39baf9d6e7ae7703ca Mon Sep 17 00:00:00 2001 From: deraadt Date: Mon, 17 Apr 2017 21:48:26 +0000 Subject: [PATCH] freezero() can be used here --- libexec/ftpd/monitor.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/libexec/ftpd/monitor.c b/libexec/ftpd/monitor.c index 04b1e3ff4ec..9a2fbc5f992 100644 --- a/libexec/ftpd/monitor.c +++ b/libexec/ftpd/monitor.c @@ -1,4 +1,4 @@ -/* $OpenBSD: monitor.c,v 1.24 2016/04/25 15:43:34 deraadt Exp $ */ +/* $OpenBSD: monitor.c,v 1.25 2017/04/17 21:48:26 deraadt Exp $ */ /* * Copyright (c) 2004 Moritz Jodeit @@ -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: -- 2.20.1