]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli:auth: Keep data of extract_pw_from_buffer() secret
authorAndreas Schneider <asn@samba.org>
Mon, 25 Jul 2022 06:42:39 +0000 (08:42 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Thu, 28 Jul 2022 11:51:29 +0000 (11:51 +0000)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
libcli/auth/smbencrypt.c

index 934995c87fa446314b82476a706cfef84809171e..d4c97195996c9c108741fe4c8fcd5adb358af029 100644 (file)
@@ -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;
 }