diff options
Diffstat (limited to 'source3/librpc/gen_ndr/cli_wkssvc.c')
-rw-r--r-- | source3/librpc/gen_ndr/cli_wkssvc.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/source3/librpc/gen_ndr/cli_wkssvc.c b/source3/librpc/gen_ndr/cli_wkssvc.c index ed65acce28..16b11277a2 100644 --- a/source3/librpc/gen_ndr/cli_wkssvc.c +++ b/source3/librpc/gen_ndr/cli_wkssvc.c @@ -102,10 +102,10 @@ NTSTATUS rpccli_wkssvc_NetWkstaEnumUsers(struct rpc_pipe_client *cli, TALLOC_CTX /* Return variables */ *users = *r.out.users; - if ( entriesread ) { + if (entriesread && r.out.entriesread) { *entriesread = *r.out.entriesread; } - if ( totalentries ) { + if (totalentries && r.out.totalentries) { *totalentries = *r.out.totalentries; } *resumehandle = *r.out.resumehandle; @@ -203,7 +203,7 @@ NTSTATUS rpccli_wkssvc_NetWkstaTransportEnum(struct rpc_pipe_client *cli, TALLOC /* Return variables */ *level = *r.out.level; *ctr = *r.out.ctr; - if ( totalentries ) { + if (totalentries && r.out.totalentries) { *totalentries = *r.out.totalentries; } *resume_handle = *r.out.resume_handle; |