From 10ee36bede1337d73feec575cc840957090b30b2 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 19 Nov 2003 22:10:20 +0000 Subject: switched to a new way of handling unions, so that we can handle alignment correctly for unions that have non-uint16 discriminants fixed the union handling in srvsvc.idl. (metze, please take a look at the changes, your IDL did match what was one the wire in most cases, but isn't the way IDL is usually coded) (This used to be commit 7b5d0287298e8505e0ec7b22d75d9f9a8a610031) --- source4/torture/rpc/echo.c | 2 +- source4/torture/rpc/srvsvc.c | 78 ++++++++++++++++++++------------------------ source4/torture/rpc/wkssvc.c | 2 +- 3 files changed, 38 insertions(+), 44 deletions(-) (limited to 'source4/torture/rpc') diff --git a/source4/torture/rpc/echo.c b/source4/torture/rpc/echo.c index 8d8a3d7c0c..2ea7362e9a 100644 --- a/source4/torture/rpc/echo.c +++ b/source4/torture/rpc/echo.c @@ -224,7 +224,7 @@ BOOL torture_rpc_echo(int dummy) return False; } -#if 1 +#if 0 if (!test_addone(p, mem_ctx)) { ret = False; } diff --git a/source4/torture/rpc/srvsvc.c b/source4/torture/rpc/srvsvc.c index 384959f26a..45103b8188 100644 --- a/source4/torture/rpc/srvsvc.c +++ b/source4/torture/rpc/srvsvc.c @@ -34,19 +34,18 @@ static BOOL test_NetConnEnum(struct dcerpc_pipe *p, r.in.server_unc = talloc_asprintf(mem_ctx,"\\\\%s",dcerpc_server_name(p)); r.in.path = talloc_asprintf(mem_ctx,"%s","ADMIN$"); - r.in.ctr.subctr.ctr0 = &c0; - r.in.ctr.subctr.ctr0->count = 0; - r.in.ctr.subctr.ctr0->array = NULL; + 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; for (i=0;icount = 0; - r.in.ctr.subctr.ctr3->array = NULL; + r.in.ctr.ctr3 = &c3; + r.in.ctr.ctr3->count = 0; + r.in.ctr.ctr3->array = NULL; r.in.preferred_len = (uint32)4096; r.in.resume_handle = NULL; for (i=0;icount = 0; - r.in.ctr.subctr.ctr0->array = NULL; + 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; for (i=0;icount = 0; - r.in.ctr.subctr.ctr0->array = NULL; + 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; for (i=0;icount = 0; - r.in.ctr.subctr.ctr0->array = NULL; + 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; for (i=0;icount = 0; - r.in.ctr.subctr.ctr0->array = NULL; + 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; for (i=0;i