r22969: fix some more places where we could end up with more than one event
[sfrench/samba-autobuild/.git] / source4 / torture / raw / composite.c
index b551af00b123aa13b03bd25d8f837ce5948c985c..e68ebcc824b615437727fd694ccd804101a7c4e2 100644 (file)
@@ -164,7 +164,7 @@ static BOOL test_fetchfile(struct smbcli_state *cli, TALLOC_CTX *mem_ctx)
 
        printf("testing parallel fetchfile with %d ops\n", torture_numops);
 
-       event_ctx = event_context_init(mem_ctx);
+       event_ctx = cli->transport->socket->event.ctx;
        c = talloc_array(mem_ctx, struct composite_context *, torture_numops);
 
        for (i=0; i<torture_numops; i++) {