Add context for libcli_resolve.
[samba-svnmirror.git] / source / torture / libnet / libnet_lookup.c
index 6b4c03beb71bd9adff80170c5d96bc875c162277..bf3c77fb44b47f1091ff9edc3a2b81e39cce6881 100644 (file)
@@ -40,7 +40,7 @@ bool torture_lookup(struct torture_context *torture)
 
        mem_ctx = talloc_init("test_lookup");
 
-       ctx = libnet_context_init(NULL);
+       ctx = libnet_context_init(NULL, torture->lp_ctx);
        ctx->cred = cmdline_credentials;
 
        lookup.in.hostname = torture_setting_string(torture, "host", NULL);
@@ -52,7 +52,7 @@ bool torture_lookup(struct torture_context *torture)
        }
 
        lookup.in.type     = NBT_NAME_CLIENT;
-       lookup.in.methods  = NULL;
+       lookup.in.resolve_ctx = NULL;
        lookup.out.address = NULL;
 
        status = libnet_Lookup(ctx, mem_ctx, &lookup);
@@ -84,7 +84,7 @@ bool torture_lookup_host(struct torture_context *torture)
 
        mem_ctx = talloc_init("test_lookup_host");
 
-       ctx = libnet_context_init(NULL);
+       ctx = libnet_context_init(NULL, torture->lp_ctx);
        ctx->cred = cmdline_credentials;
 
        lookup.in.hostname = torture_setting_string(torture, "host", NULL);
@@ -95,7 +95,7 @@ bool torture_lookup_host(struct torture_context *torture)
                }
        }
 
-       lookup.in.methods  = NULL;
+       lookup.in.resolve_ctx = NULL;
        lookup.out.address = NULL;
 
        status = libnet_LookupHost(ctx, mem_ctx, &lookup);
@@ -127,7 +127,7 @@ bool torture_lookup_pdc(struct torture_context *torture)
 
        mem_ctx = talloc_init("test_lookup_pdc");
 
-       ctx = libnet_context_init(NULL);
+       ctx = libnet_context_init(NULL, 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);
+       ctx = libnet_context_init(NULL, torture->lp_ctx);
        ctx->cred = cmdline_credentials;
 
        mem_ctx = talloc_init("torture lookup sam name");