From: deraadt Date: Mon, 17 Apr 2017 21:48:26 +0000 (+0000) Subject: freezero() can be used here X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=e4c28d58af19123b34a52e39baf9d6e7ae7703ca;p=openbsd freezero() can be used here --- 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: