From 03b59a8d9bf06d6059f7bbc839f2e719fe9457c1 Mon Sep 17 00:00:00 2001 From: =?utf8?q?G=C3=BCnther=20Deschner?= Date: Tue, 21 Jul 2015 21:32:53 +0200 Subject: [PATCH] s4-torture: fix remact test from crashing. MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit RemoteActivation was missing all out,ref pointers. Guenther Signed-off-by: Günther Deschner Reviewed-by: Jeremy Allison --- source4/torture/rpc/remact.c | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/source4/torture/rpc/remact.c b/source4/torture/rpc/remact.c index aff89a1a5ac..627b8dc1598 100644 --- a/source4/torture/rpc/remact.c +++ b/source4/torture/rpc/remact.c @@ -35,8 +35,17 @@ static bool test_RemoteActivation(struct torture_context *tctx, struct GUID iids[1]; uint16_t protseq[3] = { EPM_PROTOCOL_TCP, EPM_PROTOCOL_NCALRPC, EPM_PROTOCOL_UUID }; struct dcerpc_binding_handle *b = p->binding_handle; + struct ORPCTHAT that; + uint64_t pOxid; + struct DUALSTRINGARRAY *pdsaOxidBindings; + struct GUID ipidRemUnknown; + uint32_t AuthnHint; + struct COMVERSION ServerVersion; + WERROR hr; + struct MInterfacePointer *ifaces; + + ZERO_STRUCT(r); - ZERO_STRUCT(r.in); r.in.this_object.version.MajorVersion = 5; r.in.this_object.version.MinorVersion = 1; r.in.this_object.cid = GUID_random(); @@ -48,6 +57,15 @@ static bool test_RemoteActivation(struct torture_context *tctx, GUID_from_string(DCERPC_IUNKNOWN_UUID, &iids[0]); r.in.pIIDs = iids; + r.out.that = &that; + r.out.pOxid = &pOxid; + r.out.pdsaOxidBindings = &pdsaOxidBindings; + r.out.ipidRemUnknown = &ipidRemUnknown; + r.out.AuthnHint = &AuthnHint; + r.out.ServerVersion = &ServerVersion; + r.out.hr = &hr; + r.out.ifaces = &ifaces; + status = dcerpc_RemoteActivation_r(b, tctx, &r); torture_assert_ntstatus_ok(tctx, status, "RemoteActivation"); -- 2.34.1