summaryrefslogtreecommitdiff
path: root/source4/torture
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2008-10-29 20:39:57 +0100
committerGünther Deschner <gd@samba.org>2008-10-31 02:44:32 +0100
commitc982b369308aba34d772159435fee28ab708fbda (patch)
tree049dbe4ff346baffbd829c80b80bc60dc89a0411 /source4/torture
parent5cd089edd2c400bf1141de8354e075718d79f2c0 (diff)
downloadsamba-c982b369308aba34d772159435fee28ab708fbda.tar.gz
samba-c982b369308aba34d772159435fee28ab708fbda.tar.bz2
samba-c982b369308aba34d772159435fee28ab708fbda.zip
s4-srvsvc: merge srvsvc_NetSrvGetInfo from s3 idl.
Guenther
Diffstat (limited to 'source4/torture')
-rw-r--r--source4/torture/rpc/srvsvc.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c
index a6536faec7..8ce2321369 100644
--- a/source4/torture/rpc/srvsvc.c
+++ b/source4/torture/rpc/srvsvc.c
@@ -766,19 +766,15 @@ static bool test_NetSrvGetInfo(struct torture_context *tctx,
{
NTSTATUS status;
struct srvsvc_NetSrvGetInfo r;
- struct srvsvc_NetSrvInfo503 i503;
+ union srvsvc_NetSrvInfo info;
uint32_t levels[] = {100, 101, 102, 502, 503};
int i;
- uint32_t resume_handle;
-
- ZERO_STRUCT(i503);
r.in.server_unc = talloc_asprintf(tctx,"\\\\%s",dcerpc_server_name(p));
for (i=0;i<ARRAY_SIZE(levels);i++) {
- ZERO_STRUCT(r.out);
- resume_handle = 0;
r.in.level = levels[i];
+ r.out.info = &info;
torture_comment(tctx, "testing NetSrvGetInfo level %u\n", r.in.level);
status = dcerpc_srvsvc_NetSrvGetInfo(p, tctx, &r);
torture_assert_ntstatus_ok(tctx, status, "NetSrvGetInfo failed");