From: Pavel Filipenský Date: Mon, 8 Aug 2022 15:49:11 +0000 (+0200) Subject: s3:passdb: s/BURN_PTR_SIZE/BURN_STR/ in samu_destroy() X-Git-Tag: talloc-2.4.0~1312 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=12478c24b0b994adc909c06e85d7c6c5330f9db2;p=thirdparty%2Fsamba.git 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ý Reviewed-by: Andreas Schneider --- diff --git a/source3/passdb/passdb.c b/source3/passdb/passdb.c index 00a430eb2d9..8b66a992269 100644 --- a/source3/passdb/passdb.c +++ b/source3/passdb/passdb.c @@ -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; }