]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
s3:passdb: s/BURN_PTR_SIZE/BURN_STR/ in samu_destroy()
authorPavel Filipenský <pfilipensky@samba.org>
Mon, 8 Aug 2022 15:49:11 +0000 (17:49 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 26 Aug 2022 07:59:32 +0000 (07:59 +0000)
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>
source3/passdb/passdb.c

index 00a430eb2d9d047b956f02f0add1cac042b53f5d..8b66a99226985dab3597374138e614288ef1cfd4 100644 (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;
 }