diff options
author | Günther Deschner <gd@samba.org> | 2015-07-21 21:32:53 +0200 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2015-07-31 01:55:28 +0200 |
commit | 03b59a8d9bf06d6059f7bbc839f2e719fe9457c1 (patch) | |
tree | eb155081436141dbf80bc7500c657f08215df864 /source4/torture/rpc/remact.c | |
parent | 2ec59185b9cfd7954b8433bacd74284a4ae72d7e (diff) | |
download | samba-03b59a8d9bf06d6059f7bbc839f2e719fe9457c1.tar.gz |
s4-torture: fix remact test from crashing.
RemoteActivation was missing all out,ref pointers.
Guenther
Signed-off-by: Günther Deschner <gd@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source4/torture/rpc/remact.c')
-rw-r--r-- | source4/torture/rpc/remact.c | 20 |
1 files changed, 19 insertions, 1 deletions
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"); |