s4-torture: fix remact test from crashing.
authorGünther Deschner <gd@samba.org>
Tue, 21 Jul 2015 19:32:53 +0000 (21:32 +0200)
committerJeremy Allison <jra@samba.org>
Thu, 30 Jul 2015 23:55:28 +0000 (01:55 +0200)
RemoteActivation was missing all out,ref pointers.

Guenther

Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source4/torture/rpc/remact.c

index aff89a1a5ac08f645d185492c2378ef93f514ac9..627b8dc159862390cec9ce6f373edb38bc9a4006 100644 (file)
@@ -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");