From a6e5654b3dbfcefde863dead8031630ae476b5b9 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 20 Nov 2003 05:34:02 +0000 Subject: fixed srvsvc_NetShareEnumAll() (This used to be commit ab4056e25ccfde5136ff3a1cd5d1efa78f1eee1b) --- source4/torture/rpc/srvsvc.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'source4/torture') 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