summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2003-11-20 05:34:02 +0000
committerAndrew Tridgell <tridge@samba.org>2003-11-20 05:34:02 +0000
commita6e5654b3dbfcefde863dead8031630ae476b5b9 (patch)
tree8e19d05481a4e820da9ee608858ebd60698656a7 /source4/torture
parent4730469cd87b5c19d0c7e8da9194f3c8f6fb8d24 (diff)
downloadsamba-a6e5654b3dbfcefde863dead8031630ae476b5b9.tar.gz
samba-a6e5654b3dbfcefde863dead8031630ae476b5b9.tar.bz2
samba-a6e5654b3dbfcefde863dead8031630ae476b5b9.zip
fixed srvsvc_NetShareEnumAll()
(This used to be commit ab4056e25ccfde5136ff3a1cd5d1efa78f1eee1b)
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/srvsvc.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index 7111d59a3d..1f93357907 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -118,7 +118,7 @@ static BOOL test_NetSessEnum(struct dcerpc_pipe *p,
}
static BOOL test_NetShareEnumAll(struct dcerpc_pipe *p,
- TALLOC_CTX *mem_ctx)
+ TALLOC_CTX *mem_ctx)
{
NTSTATUS status;
struct srvsvc_NetShareEnumAll r;
@@ -126,15 +126,18 @@ static BOOL test_NetShareEnumAll(struct dcerpc_pipe *p,
uint32 levels[] = {0, 1, 2, 501, 502, 1004};
int i;
BOOL ret = True;
+ uint32 resume_handle;
+
+ ZERO_STRUCT(c0);
r.in.server_unc = talloc_asprintf(mem_ctx,"\\\\%s",dcerpc_server_name(p));
r.in.ctr.ctr0 = &c0;
- r.in.ctr.ctr0->count = 0;
- r.in.ctr.ctr0->array = NULL;
- r.in.preferred_len = (uint32)-1;
- r.in.resume_handle = NULL;
+ r.in.max_buffer = (uint32)-1;
+ r.in.resume_handle = &resume_handle;
+ r.out.resume_handle = &resume_handle;
for (i=0;i<ARRAY_SIZE(levels);i++) {
+ resume_handle = 0;
r.in.level = levels[i];
printf("testing NetShareEnumAll level %u\n", r.in.level);
status = dcerpc_srvsvc_NetShareEnumAll(p, mem_ctx, &r);