summaryrefslogtreecommitdiff
path: root/source4/torture/rpc
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-30 11:21:52 +0100
committerGünther Deschner <gd@samba.org>2008-10-31 02:44:33 +0100
commit439f197a68e794a95e29f8c37b7d960bd7da420e (patch)
treead963c29fec340ab5ba120e04d5327f195e39555 /source4/torture/rpc
parent7255209177e8ad97689d6c2c033d1423ee775075 (diff)
downloadsamba-439f197a68e794a95e29f8c37b7d960bd7da420e.tar.gz
samba-439f197a68e794a95e29f8c37b7d960bd7da420e.tar.bz2
samba-439f197a68e794a95e29f8c37b7d960bd7da420e.zip
s4-srvsvc: merge srvsvc_NetDiskEnum from s3 idl.
Guenther
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r--source4/torture/rpc/srvsvc.c11
1 files changed, 9 insertions, 2 deletions
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index 2e78f8edf2..b513ccc973 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -796,16 +796,23 @@ static bool test_NetDiskEnum(struct torture_context *tctx,
{
NTSTATUS status;
struct srvsvc_NetDiskEnum r;
+ struct srvsvc_NetDiskInfo info;
+ uint32_t totalentries = 0;
uint32_t levels[] = {0};
int i;
uint32_t resume_handle=0;
- ZERO_STRUCT(r.in);
+ ZERO_STRUCT(info);
+
r.in.server_unc = NULL;
r.in.resume_handle = &resume_handle;
+ r.in.info = &info;
+ r.out.info = &info;
+ r.out.totalentries = &totalentries;
+ r.out.resume_handle = &resume_handle;
for (i=0;i<ARRAY_SIZE(levels);i++) {
- ZERO_STRUCT(r.out);
+ ZERO_STRUCTP(r.out.info);
r.in.level = levels[i];
torture_comment(tctx, "testing NetDiskEnum level %u\n", r.in.level);
status = dcerpc_srvsvc_NetDiskEnum(p, tctx, &r);