summaryrefslogtreecommitdiff
path: root/source4/torture/rpc/srvsvc.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/rpc/srvsvc.c')
-rw-r--r--source4/torture/rpc/srvsvc.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index 47002d3550..daa4e96386 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -509,8 +509,6 @@ static BOOL test_NetShareEnum(struct dcerpc_pipe *p,
r.in.resume_handle = NULL;
for (i=0;i<ARRAY_SIZE(levels);i++) {
- int j;
-
ZERO_STRUCT(r.out);
r.in.level = levels[i];
printf("testing NetShareEnum level %u\n", r.in.level);
@@ -524,17 +522,6 @@ static BOOL test_NetShareEnum(struct dcerpc_pipe *p,
printf("NetShareEnum level %u failed - %s\n", r.in.level, win_errstr(r.out.result));
continue;
}
-
- /* call srvsvc_NetShareGetInfo for each returned share */
- if (r.in.level == 1) {
- for (j=0;j<r.out.ctr.ctr1->count;j++) {
- const char *name;
- name = r.out.ctr.ctr1->array[j].name;
- if (!test_NetShareGetInfo(p, mem_ctx, name)) {
- ret = False;
- }
- }
- }
}
return True;