]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:utils: Keep password secret in ntlm_auth get_password()
authorAndreas Schneider <asn@samba.org>
Thu, 7 Aug 2025 11:48:26 +0000 (13:48 +0200)
committerAlexander Bokovoy <ab@samba.org>
Mon, 25 Aug 2025 11:03:38 +0000 (11:03 +0000)
BUG: https://bugzilla.samba.org/show_bug.cgi?id=15893

Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Alexander Bokovoy <ab@samba.org>
source3/utils/ntlm_auth.c

index d5ae7c85b223f876c1c3bed46fd87d3d91a54c80..a424990baa83dd59d9d2a09d13df926de7893c46 100644 (file)
@@ -254,6 +254,7 @@ static const char *get_password(struct cli_credentials *credentials)
 
        manage_squid_request(NUM_HELPER_MODES /* bogus */, NULL, state, manage_gensec_get_pw_request, (void **)&password);
        talloc_steal(credentials, password);
+       talloc_keep_secret(password);
        TALLOC_FREE(frame);
        return password;
 }