]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib:krb5: Change memset() to BURN_PTR_SIZE()
authorPavel Filipenský <pfilipensky@samba.org>
Wed, 17 Aug 2022 15:33:42 +0000 (17:33 +0200)
committerAndreas Schneider <asn@cryptomilk.org>
Fri, 26 Aug 2022 07:59:32 +0000 (07:59 +0000)
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
lib/krb5_wrap/krb5_samba.c

index 2873c3864107ca42939c020bbda08d75f534a31a..0e70b696948db815bf7206a1ceb093ef804ce102 100644 (file)
@@ -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,