]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libcli/auth: Zero out password in smbencrypt.c
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 26 Nov 2025 09:34:02 +0000 (10:34 +0100)
committerPavel Filipensky <pfilipensky@samba.org>
Mon, 8 Dec 2025 18:21:45 +0000 (18:21 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Pavel Filipensky <pfilipensky@samba.org>
Autobuild-Date(master): Mon Dec  8 18:21:45 UTC 2025 on atb-devel-224

libcli/auth/smbencrypt.c

index 03195855e926d437f7d5847b06b20e75927aee0b..b130c0abe347283981297ea3f555bc58f7835589 100644 (file)
@@ -1472,7 +1472,7 @@ bool decode_pw_buffer(TALLOC_CTX *ctx,
                                   new_password.length,
                                   pp_new_pwrd,
                                   new_pw_len);
-       data_blob_free(&new_password);
+       data_blob_clear_free(&new_password);
        if (!ok) {
                DBG_ERR("Failed to convert incoming password\n");
                return false;