summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1999-02-08 23:40:49 +0000
committerLuke Leighton <lkcl@samba.org>1999-02-08 23:40:49 +0000
commit99a9b0f7c4f85f46102457cf4707e8948b77fb3f (patch)
tree3bb95603cd8656e486e62ce557d368e0766b1ace /source3/libsmb
parent37c9693fc8055773812ed86d91f9dfcc554eea30 (diff)
downloadsamba-99a9b0f7c4f85f46102457cf4707e8948b77fb3f.tar.gz
samba-99a9b0f7c4f85f46102457cf4707e8948b77fb3f.tar.bz2
samba-99a9b0f7c4f85f46102457cf4707e8948b77fb3f.zip
UNICODE byte ordering issue: typecast to uint16* replaced with SSVAL()
(This used to be commit 9084b7e33dfe717bd8d5604ee71d137e3baef0f5)
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/smbencrypt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/libsmb/smbencrypt.c b/source3/libsmb/smbencrypt.c
index 9234088404..dd801e5982 100644
--- a/source3/libsmb/smbencrypt.c
+++ b/source3/libsmb/smbencrypt.c
@@ -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
{