From 83dc061fd3c670f5f1e2bed5c4e8db94ce81dfc5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pavel=20Filipensk=C3=BD?= Date: Tue, 9 Aug 2022 15:37:15 +0200 Subject: [PATCH] s3:net: Zero password in secrets_fetch_ipc_userpass() callers MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- source3/utils/net.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source3/utils/net.c b/source3/utils/net.c index 5783b30dbff..2e8a00f47c7 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -332,7 +332,7 @@ static int net_getauthuser(struct net_context *c, int argc, const char **argv) SAFE_FREE(user); SAFE_FREE(domain); - SAFE_FREE(password); + BURN_FREE_STR(password); d_printf(_("No authorised user configured\n")); return 0; } @@ -345,7 +345,7 @@ static int net_getauthuser(struct net_context *c, int argc, const char **argv) SAFE_FREE(user); SAFE_FREE(domain); - SAFE_FREE(password); + BURN_FREE_STR(password); return 0; }