r22969: fix some more places where we could end up with more than one event
[samba.git] / source4 / torture / local / resolve.c
index 21a7392a147cbd066a1fb37bb3dc03dbe324c1c1..d3bae2118410e9f64105ceb9aeebe0235ab7fc87 100644 (file)
@@ -35,7 +35,7 @@ static bool test_async_resolve(struct torture_context *tctx)
        struct timeval tv = timeval_current();
        TALLOC_CTX *mem_ctx = tctx;
 
-       ev = event_context_init(mem_ctx);
+       ev = tctx->ev;
 
        ZERO_STRUCT(n);
        n.name = host;