diff options
author | Joseph Sutton <josephsutton@catalyst.net.nz> | 2022-08-02 14:35:50 +1200 |
---|---|---|
committer | Jule Anger <janger@samba.org> | 2022-09-19 04:02:12 +0000 |
commit | beb63ae03b7dd98f2ed58345fc06b659ea5c11b6 (patch) | |
tree | 612810a19e1d5e5ad4951f3a1ec3852d8577baad /libcli | |
parent | c3d6964fccd088d415d6fce3bc5ed8bb324ea826 (diff) | |
download | samba-beb63ae03b7dd98f2ed58345fc06b659ea5c11b6.tar.gz |
libcli:auth: Keep passwords from convert_string_talloc() secret
Signed-off-by: Joseph Sutton <josephsutton@catalyst.net.nz>
Reviewed-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
(cherry picked from commit 6edf88f5c40421b9881666a2e78038ea9c547c24)
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/auth/smbencrypt.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index 7abf6613d80..8492202ea93 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -975,6 +975,7 @@ bool decode_pw_buffer(TALLOC_CTX *ctx, DBG_ERR("Failed to convert incoming password\n"); return false; } + talloc_keep_secret(*pp_new_pwrd); #ifdef DEBUG_PASSWORD DEBUG(100,("decode_pw_buffer: new_pwrd: ")); @@ -1067,6 +1068,7 @@ bool decode_pwd_string_from_buffer514(TALLOC_CTX *mem_ctx, if (!ok) { return false; } + talloc_keep_secret(decoded_password->data); return true; } |