From e87facfd890241cf207349668e731abd76bbd3f9 Mon Sep 17 00:00:00 2001 From: Andreas Schneider Date: Mon, 25 Jul 2022 08:42:39 +0200 Subject: [PATCH] libcli:auth: Keep data of extract_pw_from_buffer() secret Signed-off-by: Andreas Schneider Reviewed-by: Stefan Metzmacher --- libcli/auth/smbencrypt.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.47.3