diff options
author | Stefan Metzmacher <metze@samba.org> | 2011-09-22 21:30:13 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2011-11-29 16:00:08 +0100 |
commit | 511dc9358d8954f9ef04c01fb7cc3f776625c1f2 (patch) | |
tree | 5d781d27cc69ee8159d2ad1b5ad41e3d5507409f /source4/torture/rpc | |
parent | 13dbef241b24d54c7e8793ff81090614393d76ad (diff) | |
download | samba-511dc9358d8954f9ef04c01fb7cc3f776625c1f2.tar.gz samba-511dc9358d8954f9ef04c01fb7cc3f776625c1f2.tar.bz2 samba-511dc9358d8954f9ef04c01fb7cc3f776625c1f2.zip |
s4:torture: use tctx->ev as event context for polling
metze
Diffstat (limited to 'source4/torture/rpc')
-rw-r--r-- | source4/torture/rpc/samba3rpc.c | 20 |
1 files changed, 7 insertions, 13 deletions
diff --git a/source4/torture/rpc/samba3rpc.c b/source4/torture/rpc/samba3rpc.c index ba21cad0f1..5274603fd2 100644 --- a/source4/torture/rpc/samba3rpc.c +++ b/source4/torture/rpc/samba3rpc.c @@ -91,7 +91,7 @@ bool torture_bind_authcontext(struct torture_context *torture) goto done; } - lsa_pipe = dcerpc_pipe_init(mem_ctx, cli->transport->socket->event.ctx); + lsa_pipe = dcerpc_pipe_init(mem_ctx, torture->ev); if (lsa_pipe == NULL) { torture_comment(torture, "dcerpc_pipe_init failed\n"); goto done; @@ -221,8 +221,7 @@ static bool bindtest(struct torture_context *tctx, return false; } - lsa_pipe = dcerpc_pipe_init(mem_ctx, - cli->transport->socket->event.ctx); + lsa_pipe = dcerpc_pipe_init(mem_ctx, tctx->ev); if (lsa_pipe == NULL) { torture_comment(tctx, "dcerpc_pipe_init failed\n"); goto done; @@ -392,8 +391,7 @@ static bool get_usr_handle(struct torture_context *tctx, struct samr_CreateUser2 c; uint32_t user_rid,access_granted; - samr_pipe = dcerpc_pipe_init(mem_ctx, - cli->transport->socket->event.ctx); + samr_pipe = dcerpc_pipe_init(mem_ctx, tctx->ev); torture_assert(tctx, samr_pipe, "dcerpc_pipe_init failed"); samr_handle = samr_pipe->binding_handle; @@ -947,8 +945,7 @@ static bool auth2(struct torture_context *tctx, return false; } - net_pipe = dcerpc_pipe_init(mem_ctx, - cli->transport->socket->event.ctx); + net_pipe = dcerpc_pipe_init(mem_ctx, tctx->ev); if (net_pipe == NULL) { torture_comment(tctx, "dcerpc_pipe_init failed\n"); goto done; @@ -1063,8 +1060,7 @@ static bool schan(struct torture_context *tctx, return false; } - net_pipe = dcerpc_pipe_init(mem_ctx, - cli->transport->socket->event.ctx); + net_pipe = dcerpc_pipe_init(mem_ctx, tctx->ev); if (net_pipe == NULL) { torture_comment(tctx, "dcerpc_pipe_init failed\n"); goto done; @@ -1508,8 +1504,7 @@ static NTSTATUS pipe_bind_smb(struct torture_context *tctx, struct dcerpc_pipe *result; NTSTATUS status; - if (!(result = dcerpc_pipe_init( - mem_ctx, tree->session->transport->socket->event.ctx))) { + if (!(result = dcerpc_pipe_init(mem_ctx, tctx->ev))) { return NT_STATUS_NO_MEMORY; } @@ -2078,8 +2073,7 @@ static bool torture_samba3_rpc_randomauth2(struct torture_context *torture) goto done; } - if (!(net_pipe = dcerpc_pipe_init( - mem_ctx, cli->transport->socket->event.ctx))) { + if (!(net_pipe = dcerpc_pipe_init(mem_ctx, torture->ev))) { torture_comment(torture, "dcerpc_pipe_init failed\n"); goto done; } |