1
0
mirror of https://github.com/samba-team/samba.git synced 2025-07-30 19:42:05 +03:00

UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()

This commit is contained in:
Luke Leighton
-
parent 9ab81caa06
commit 9084b7e33d
8 changed files with 21 additions and 21 deletions

View File

@ -209,7 +209,7 @@ BOOL make_oem_passwd_hash(char data[516], const char *passwd, uchar old_pw_hash[
generate_random_buffer((unsigned char *)data, 516, False);
if (unicode)
{
struni2( (uint16*)(&data[512 - new_pw_len]), passwd);
struni2( &data[512 - new_pw_len], passwd);
}
else
{