From ff54cbe3d4c090003720eaef2a7321923404db39 Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 9 Mar 2010 15:46:55 +0100 Subject: s4:torture/rpc: make use of use tevent_req based dcerpc_binding_handle stubs metze --- source4/torture/rpc/netlogon.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'source4/torture/rpc/netlogon.c') diff --git a/source4/torture/rpc/netlogon.c b/source4/torture/rpc/netlogon.c index dd23c6eab0..4d14d6e0d5 100644 --- a/source4/torture/rpc/netlogon.c +++ b/source4/torture/rpc/netlogon.c @@ -2747,7 +2747,7 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx, #define ASYNC_COUNT 100 struct netlogon_creds_CredentialState *creds; struct netlogon_creds_CredentialState *creds_async[ASYNC_COUNT]; - struct rpc_request *req[ASYNC_COUNT]; + struct tevent_req *req[ASYNC_COUNT]; int i; union netr_WorkstationInfo query; union netr_DomainInfo info; @@ -2781,7 +2781,7 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx, netlogon_creds_client_authenticator(creds, &a); creds_async[i] = (struct netlogon_creds_CredentialState *)talloc_memdup(creds, creds, sizeof(*creds)); - req[i] = dcerpc_netr_LogonGetDomainInfo_send(p, tctx, &r); + req[i] = dcerpc_netr_LogonGetDomainInfo_r_send(tctx, tctx->ev, p->binding_handle, &r); /* even with this flush per request a w2k3 server seems to clag with multiple outstanding requests. bleergh. */ @@ -2790,7 +2790,10 @@ static bool test_GetDomainInfo_async(struct torture_context *tctx, } for (i=0;iev), true, + "tevent_req_poll() failed"); + + status = dcerpc_netr_LogonGetDomainInfo_r_recv(req[i], tctx); torture_assert_ntstatus_ok(tctx, status, "netr_LogonGetDomainInfo_async"); torture_assert_ntstatus_ok(tctx, r.out.result, "netr_LogonGetDomainInfo_async"); -- cgit