diff options
author | Jeremy Allison <jra@samba.org> | 2001-03-13 01:44:05 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2001-03-13 01:44:05 +0000 |
commit | 0ef2179d23a2f9826e17c2b858fd8f2a9634b332 (patch) | |
tree | 7af8048480b60b9d1e044f78900a19bc93302859 /source3/rpc_server/srv_lsa_nt.c | |
parent | 23e5cf060d282c9ba9bdf49884ce23a13b285aac (diff) | |
download | samba-0ef2179d23a2f9826e17c2b858fd8f2a9634b332.tar.gz samba-0ef2179d23a2f9826e17c2b858fd8f2a9634b332.tar.bz2 samba-0ef2179d23a2f9826e17c2b858fd8f2a9634b332.zip |
Fixed reading of strings from big-endian RPC clients.
Jeremy.
(This used to be commit e7ecb9410ff2e4fcd33bca9f82e14c060590942a)
Diffstat (limited to 'source3/rpc_server/srv_lsa_nt.c')
-rw-r--r-- | source3/rpc_server/srv_lsa_nt.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/rpc_server/srv_lsa_nt.c b/source3/rpc_server/srv_lsa_nt.c index d1a7c049d8..6e70d8cc87 100644 --- a/source3/rpc_server/srv_lsa_nt.c +++ b/source3/rpc_server/srv_lsa_nt.c @@ -109,7 +109,7 @@ static int init_dom_ref(DOM_R_REF *ref, char *dom_name, DOM_SID *dom_sid) static void init_lsa_rid2s(DOM_R_REF *ref, DOM_RID2 *rid2, int num_entries, UNISTR2 name[MAX_LOOKUP_SIDS], - uint32 *mapped_count) + uint32 *mapped_count, BOOL endian) { int i; int total = 0; @@ -128,7 +128,7 @@ static void init_lsa_rid2s(DOM_R_REF *ref, DOM_RID2 *rid2, /* Split name into domain and user component */ - pstrcpy(full_name, dos_unistr2_to_str(&name[i])); + pstrcpy(full_name, rpc_unistr2_to_str(&name[i], endian)); split_domain_name(full_name, dom_name, user); /* Lookup name */ @@ -479,7 +479,7 @@ uint32 _lsa_lookup_names(pipes_struct *p,LSA_Q_LOOKUP_NAMES *q_u, LSA_R_LOOKUP_N return NT_STATUS_NO_MEMORY; /* set up the LSA Lookup RIDs response */ - init_lsa_rid2s(ref, rids, num_entries, names, &mapped_count); + init_lsa_rid2s(ref, rids, num_entries, names, &mapped_count, p->endian); init_reply_lookup_names(r_u, ref, num_entries, rids, mapped_count); return r_u->status; |