r22969: fix some more places where we could end up with more than one event
[sfrench/samba-autobuild/.git] / source4 / torture / local / irpc.c
index bd52be09e2f86b777549659cd5504f52ef3bd7d7..3c177c4ecee950fc9d530bfab1a75fe01394950f 100644 (file)
@@ -217,7 +217,7 @@ static BOOL irpc_setup(struct torture_context *tctx, void **_data)
 
        lp_set_cmdline("lock dir", "lockdir.tmp");
 
-       data->ev = event_context_init(tctx);
+       data->ev = tctx->ev;
        torture_assert(tctx, data->msg_ctx1 = 
                       messaging_init(tctx, 
                                      cluster_id(MSG_ID1), data->ev),