From: Andreas Schneider Date: Thu, 7 Aug 2025 11:48:04 +0000 (+0200) Subject: auth:creds: Keep password secret in cmdline_get_userpassword() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=34482f4ad014a09c84b484097a8d03dfec4f6512;p=thirdparty%2Fsamba.git auth:creds: Keep password secret in cmdline_get_userpassword() BUG: https://bugzilla.samba.org/show_bug.cgi?id=15893 Signed-off-by: Andreas Schneider Reviewed-by: Alexander Bokovoy --- diff --git a/auth/credentials/credentials_cmdline.c b/auth/credentials/credentials_cmdline.c index c8c7c183c22..e9cdc80d52a 100644 --- a/auth/credentials/credentials_cmdline.c +++ b/auth/credentials/credentials_cmdline.c @@ -46,6 +46,7 @@ static const char *cmdline_get_userpassword(struct cli_credentials *creds) goto fail; } talloc_set_name_const(ret, __location__); + talloc_keep_secret(ret); fail: ZERO_STRUCT(pwd); TALLOC_FREE(frame);