summaryrefslogtreecommitdiff
path: root/source3/librpc/gen_ndr/cli_wkssvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/librpc/gen_ndr/cli_wkssvc.c')
-rw-r--r--source3/librpc/gen_ndr/cli_wkssvc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/librpc/gen_ndr/cli_wkssvc.c b/source3/librpc/gen_ndr/cli_wkssvc.c
index 581a498146..adaa3dd7bd 100644
--- a/source3/librpc/gen_ndr/cli_wkssvc.c
+++ b/source3/librpc/gen_ndr/cli_wkssvc.c
@@ -1120,7 +1120,7 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus(struct rpc_pipe_client *cli,
/* Return variables */
*num_ous = *r.out.num_ous;
- memcpy(ous, r.out.ous, *r.in.num_ous);
+ *ous = *r.out.ous;
/* Return result */
if (werror) {
@@ -1383,7 +1383,7 @@ NTSTATUS rpccli_wkssvc_NetrGetJoinableOus2(struct rpc_pipe_client *cli,
/* Return variables */
*num_ous = *r.out.num_ous;
- memcpy(ous, r.out.ous, *r.in.num_ous);
+ *ous = *r.out.ous;
/* Return result */
if (werror) {