s4:torture/rpc: avoid usage of p->conn->event_ctx
authorStefan Metzmacher <metze@samba.org>
Tue, 14 Jan 2014 11:30:44 +0000 (12:30 +0100)
committerGünther Deschner <gd@samba.org>
Thu, 16 Jan 2014 15:22:52 +0000 (16:22 +0100)
torture_suite_add_rpc_iface_tcase() uses tctx->ev,
which means p->conn->event_ctx and tctx->ev are the same.

As we want to get rid of per connection tevent_context pointers,
we should use tctx->ev.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Guenther Deschner <gd@samba.org>
source4/torture/rpc/spoolss_notify.c

index 0bf987d1d96cafd05175a5a61816d8886b18ec23..edd9e9593fab2e8c3b26ab1c65a653f597623cd3 100644 (file)
@@ -502,7 +502,7 @@ static bool test_RFFPCNEx(struct torture_context *tctx,
        received_packets = NULL;
 
        /* Start DCE/RPC server */
-       torture_assert(tctx, test_start_dcerpc_server(tctx, p->conn->event_ctx, &dce_ctx, &address), "");
+       torture_assert(tctx, test_start_dcerpc_server(tctx, tctx->ev, &dce_ctx, &address), "");
 
        printername     = talloc_asprintf(tctx, "\\\\%s", dcerpc_server_name(p));