diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-12-15 10:21:09 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-12-15 10:21:09 +0000 |
commit | 5b0359652912baee3767d14d394eb951301c0e8f (patch) | |
tree | 2d128d08dcad7f4b704df7e6e537f541570dda13 /source4/torture/rpc | |
parent | 0a610362575d070001a49b7e0f8249e3718d8da6 (diff) | |
download | samba-5b0359652912baee3767d14d394eb951301c0e8f.tar.gz samba-5b0359652912baee3767d14d394eb951301c0e8f.tar.bz2 samba-5b0359652912baee3767d14d394eb951301c0e8f.zip |
fixed srvsvc DiskEnum call
strangely, the output doesn't seem to contain an info level. Some
programmer stuffed up the IDL :)
(This used to be commit a39ee5d00341e1dbde0b38474ba4d5e980e74538)
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/srvsvc.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c index 349fb82131..f699cb426b 100644 --- a/source4/torture/rpc/srvsvc.c +++ b/source4/torture/rpc/srvsvc.c @@ -159,10 +159,12 @@ static BOOL test_NetDiskEnum(struct dcerpc_pipe *p, uint32 levels[] = {0}; int i; BOOL ret = True; + uint32 resume_handle=0; - r.in.server_unc = talloc_asprintf(mem_ctx,"\\\\%s",dcerpc_server_name(p)); - r.in.preferred_len = (uint32)-1; - r.in.resume_handle = NULL; + r.in.server_unc = NULL; + r.in.unknown = 0; + r.in.resume_handle = &resume_handle; + r.in.ctr.ctr0 = NULL; for (i=0;i<ARRAY_SIZE(levels);i++) { r.in.level = levels[i]; @@ -273,11 +275,11 @@ BOOL torture_rpc_srvsvc(int dummy) if (!test_NetShareEnumAll(p, mem_ctx)) { ret = False; } -#if 0 + if (!test_NetDiskEnum(p, mem_ctx)) { ret = False; } -#endif + if (!test_NetTransportEnum(p, mem_ctx)) { ret = False; } |