From: Andreas Schneider Date: Mon, 25 Jul 2022 06:42:39 +0000 (+0200) Subject: libcli:auth: Keep data of extract_pw_from_buffer() secret X-Git-Tag: samba-4.17.0rc1~225 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e87facfd890241cf207349668e731abd76bbd3f9;p=thirdparty%2Fsamba.git libcli:auth: Keep data of extract_pw_from_buffer() secret Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- diff --git a/libcli/auth/smbencrypt.c b/libcli/auth/smbencrypt.c index 934995c87fa..d4c97195996 100644 --- a/libcli/auth/smbencrypt.c +++ b/libcli/auth/smbencrypt.c @@ -1129,6 +1129,7 @@ bool extract_pw_from_buffer(TALLOC_CTX *mem_ctx, if (!new_pass->data) { return false; } + talloc_keep_secret(new_pass->data); return true; }