1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-11 05:18:09 +03:00

s3:passdb: s/BURN_PTR_SIZE/BURN_STR/ in samu_destroy()

This makes sure that strlen(user->plaintext_pw) is not called twice.

Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
This commit is contained in:
Pavel Filipenský 2022-08-08 17:49:11 +02:00 committed by Andreas Schneider
parent ccae2a4ab5
commit 12478c24b0

View File

@ -47,7 +47,7 @@ static int samu_destroy(struct samu *user)
data_blob_clear_free( &user->nt_pw );
if ( user->plaintext_pw )
BURN_PTR_SIZE(user->plaintext_pw, strlen(user->plaintext_pw));
BURN_STR(user->plaintext_pw);
return 0;
}