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:
parent
ccae2a4ab5
commit
12478c24b0
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user