summaryrefslogtreecommitdiff
path: root/source4/torture/libnet/libnet_lookup.c
diff options
context:
space:
mode:
authorSimo Sorce <idra@samba.org>2008-04-14 12:43:37 -0400
committerSimo Sorce <idra@samba.org>2008-04-14 12:45:51 -0400
commit4f51b0246db3242ee02ee16905cba13a5dc5633a (patch)
treeaf0692f28714db6e2c4ef6d985e501db58e57732 /source4/torture/libnet/libnet_lookup.c
parent97e09c2f877779ca6d55684d33b1a24b8a280e51 (diff)
downloadsamba-4f51b0246db3242ee02ee16905cba13a5dc5633a.tar.gz
samba-4f51b0246db3242ee02ee16905cba13a5dc5633a.tar.bz2
samba-4f51b0246db3242ee02ee16905cba13a5dc5633a.zip
Fix problems with event context not being the parent.
(This used to be commit 957c4d893acf9e6db06a3fc3a4687ab6bb238635)
Diffstat (limited to 'source4/torture/libnet/libnet_lookup.c')
-rw-r--r--source4/torture/libnet/libnet_lookup.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source4/torture/libnet/libnet_lookup.c b/source4/torture/libnet/libnet_lookup.c
index 9167d1de3e..b25b51b7d9 100644
--- a/source4/torture/libnet/libnet_lookup.c
+++ b/source4/torture/libnet/libnet_lookup.c
@@ -40,7 +40,7 @@ bool torture_lookup(struct torture_context *torture)
mem_ctx = talloc_init("test_lookup");
- ctx = libnet_context_init(NULL, torture->lp_ctx);
+ ctx = libnet_context_init(torture->ev, torture->lp_ctx);
ctx->cred = cmdline_credentials;
lookup.in.hostname = torture_setting_string(torture, "host", NULL);
@@ -84,7 +84,7 @@ bool torture_lookup_host(struct torture_context *torture)
mem_ctx = talloc_init("test_lookup_host");
- ctx = libnet_context_init(NULL, torture->lp_ctx);
+ ctx = libnet_context_init(torture->ev, torture->lp_ctx);
ctx->cred = cmdline_credentials;
lookup.in.hostname = torture_setting_string(torture, "host", NULL);
@@ -127,7 +127,7 @@ bool torture_lookup_pdc(struct torture_context *torture)
mem_ctx = talloc_init("test_lookup_pdc");
- ctx = libnet_context_init(NULL, torture->lp_ctx);
+ ctx = libnet_context_init(torture->ev, torture->lp_ctx);
ctx->cred = cmdline_credentials;
talloc_steal(ctx, mem_ctx);
@@ -171,7 +171,7 @@ bool torture_lookup_sam_name(struct torture_context *torture)
struct libnet_context *ctx;
struct libnet_LookupName r;
- ctx = libnet_context_init(NULL, torture->lp_ctx);
+ ctx = libnet_context_init(torture->ev, torture->lp_ctx);
ctx->cred = cmdline_credentials;
mem_ctx = talloc_init("torture lookup sam name");