From: Pavel Filipenský Date: Wed, 17 Aug 2022 15:33:42 +0000 (+0200) Subject: lib:krb5: Change memset() to BURN_PTR_SIZE() X-Git-Tag: talloc-2.4.0~1304 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=28a3d5119ad5f254a2a3af380d9a4259ed8433db;p=thirdparty%2Fsamba.git lib:krb5: Change memset() to BURN_PTR_SIZE() Signed-off-by: Pavel Filipenský Reviewed-by: Andreas Schneider --- diff --git a/lib/krb5_wrap/krb5_samba.c b/lib/krb5_wrap/krb5_samba.c index 2873c386410..0e70b696948 100644 --- a/lib/krb5_wrap/krb5_samba.c +++ b/lib/krb5_wrap/krb5_samba.c @@ -322,7 +322,7 @@ int smb_krb5_create_key_from_string(krb5_context context, } mdfour(nt_hash, utf16, utf16_size); - memset(utf16, 0, utf16_size); + BURN_PTR_SIZE(utf16, utf16_size); ret = smb_krb5_keyblock_init_contents(context, ENCTYPE_ARCFOUR_HMAC, nt_hash,