summaryrefslogtreecommitdiff
path: root/source/rpc_server/srv_pipe.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-14 21:49:00 +0000
committerJeremy Allison <jra@samba.org>2001-03-14 21:49:00 +0000
commit1487c46257119eb680a530e967bf9e804fd7b322 (patch)
tree2b56d3db5a86eef6aaf07bdee9b0bcec7a81cf1f /source/rpc_server/srv_pipe.c
parentfffce6d7f79a0fff3277fdc471ae3e66cd943e7b (diff)
downloadsamba-1487c46257119eb680a530e967bf9e804fd7b322.tar.gz
Removed rpc_unistrXX calls as the fix in include/byteorder.h now means
that unistrs are correctly converted from bigendian->littlendian on unmarshalling from a bigendian client. Many thanks to Herb for tracking this one down. nmbd/nmbd_processlogon.c: Fix from Herb to return netlogon reply to the correct NBT logon name (AS/U showed this was needed - NT4 does the same). Jeremy.
Diffstat (limited to 'source/rpc_server/srv_pipe.c')
-rw-r--r--source/rpc_server/srv_pipe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source/rpc_server/srv_pipe.c b/source/rpc_server/srv_pipe.c
index c40689a2dd4..ea6472704d9 100644
--- a/source/rpc_server/srv_pipe.c
+++ b/source/rpc_server/srv_pipe.c
@@ -297,9 +297,9 @@ static BOOL api_pipe_ntlmssp_verify(pipes_struct *p, RPC_AUTH_NTLMSSP_RESP *ntlm
*/
if (p->ntlmssp_chal_flags & NTLMSSP_NEGOTIATE_UNICODE) {
- fstrcpy(user_name, rpc_unistrn2((uint16*)ntlmssp_resp->user, ntlmssp_resp->hdr_usr.str_str_len/2, p->endian));
- fstrcpy(domain, rpc_unistrn2((uint16*)ntlmssp_resp->domain, ntlmssp_resp->hdr_domain.str_str_len/2, p->endian));
- fstrcpy(wks, rpc_unistrn2((uint16*)ntlmssp_resp->wks, ntlmssp_resp->hdr_wks.str_str_len/2, p->endian));
+ fstrcpy(user_name, dos_unistrn2((uint16*)ntlmssp_resp->user, ntlmssp_resp->hdr_usr.str_str_len/2));
+ fstrcpy(domain, dos_unistrn2((uint16*)ntlmssp_resp->domain, ntlmssp_resp->hdr_domain.str_str_len/2));
+ fstrcpy(wks, dos_unistrn2((uint16*)ntlmssp_resp->wks, ntlmssp_resp->hdr_wks.str_str_len/2));
} else {
fstrcpy(user_name, ntlmssp_resp->user);
fstrcpy(domain, ntlmssp_resp->domain);