summaryrefslogtreecommitdiff
path: root/source3/rpc_server/srv_reg_nt.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2001-03-13 01:44:05 +0000
committerJeremy Allison <jra@samba.org>2001-03-13 01:44:05 +0000
commit0ef2179d23a2f9826e17c2b858fd8f2a9634b332 (patch)
tree7af8048480b60b9d1e044f78900a19bc93302859 /source3/rpc_server/srv_reg_nt.c
parent23e5cf060d282c9ba9bdf49884ce23a13b285aac (diff)
downloadsamba-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_reg_nt.c')
-rw-r--r--source3/rpc_server/srv_reg_nt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/rpc_server/srv_reg_nt.c b/source3/rpc_server/srv_reg_nt.c
index 4f941e3e1b..c953fe9d2a 100644
--- a/source3/rpc_server/srv_reg_nt.c
+++ b/source3/rpc_server/srv_reg_nt.c
@@ -85,7 +85,7 @@ uint32 _reg_open_entry(pipes_struct *p, REG_Q_OPEN_ENTRY *q_u, REG_R_OPEN_ENTRY
if (!find_policy_by_hnd(p, &q_u->pol, NULL))
return NT_STATUS_INVALID_HANDLE;
- fstrcpy(name, dos_unistrn2(q_u->uni_name.buffer, q_u->uni_name.uni_str_len));
+ fstrcpy(name, rpc_unistrn2(q_u->uni_name.buffer, q_u->uni_name.uni_str_len, p->endian));
DEBUG(5,("reg_open_entry: %s\n", name));
@@ -129,7 +129,7 @@ uint32 _reg_info(pipes_struct *p, REG_Q_INFO *q_u, REG_R_INFO *r_u)
if (find_policy_by_hnd(p, &q_u->pol, NULL) == -1)
return NT_STATUS_INVALID_HANDLE;
- fstrcpy(name, dos_unistrn2(q_u->uni_type.buffer, q_u->uni_type.uni_str_len));
+ fstrcpy(name, rpc_unistrn2(q_u->uni_type.buffer, q_u->uni_type.uni_str_len, p->endian));
DEBUG(5,("reg_info: checking key: %s\n", name));