summaryrefslogtreecommitdiff
path: root/lib/krb5_wrap
diff options
context:
space:
mode:
authorPavel Filipenský <pfilipensky@samba.org>2022-08-17 17:33:42 +0200
committerAndreas Schneider <asn@cryptomilk.org>2022-08-26 07:59:32 +0000
commit28a3d5119ad5f254a2a3af380d9a4259ed8433db (patch)
tree5edba365c0e4450d3b42fb16c94c8916458d58a9 /lib/krb5_wrap
parent4b2df80e898c837707b6854a1a94fccf8d87f6b8 (diff)
downloadsamba-28a3d5119ad5f254a2a3af380d9a4259ed8433db.tar.gz
lib:krb5: Change memset() to BURN_PTR_SIZE()
Signed-off-by: Pavel Filipenský <pfilipensky@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'lib/krb5_wrap')
-rw-r--r--lib/krb5_wrap/krb5_samba.c2
1 files changed, 1 insertions, 1 deletions
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,