diff options
author | Stefan Metzmacher <metze@samba.org> | 2004-07-16 09:51:54 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:57:40 -0500 |
commit | fd806c76ba620b924f7f7423241306b32fa46dbd (patch) | |
tree | 8740631f2a0671af9ce7e3778da8d440816d5348 | |
parent | fda5ab2f21f5d57c398eb89ba609ed43bce59bd1 (diff) | |
download | samba-fd806c76ba620b924f7f7423241306b32fa46dbd.tar.gz samba-fd806c76ba620b924f7f7423241306b32fa46dbd.tar.bz2 samba-fd806c76ba620b924f7f7423241306b32fa46dbd.zip |
r1530: we don't need to call srvsvc_NetShareGetInfo twice
in NetShareEnum and NetShareEnumAll
metze
(This used to be commit e5bf65b840cd7fbc97166c6313f5eb29de9d129f)
-rw-r--r-- | source4/torture/rpc/srvsvc.c | 13 |
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; |