diff options
author | Jelmer Vernooij <jelmer@samba.org> | 2007-12-10 18:41:19 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2007-12-21 05:49:12 +0100 |
commit | 5f4842cf65ce64bfdf577cd549565da20ca818cf (patch) | |
tree | 65f9cb14c5910e70bc0fb64f45c7ffa5e382692f /source4/torture/smb2 | |
parent | eba25f5d1897fbe61e8d7c623fcacb647629bf07 (diff) | |
download | samba-5f4842cf65ce64bfdf577cd549565da20ca818cf.tar.gz samba-5f4842cf65ce64bfdf577cd549565da20ca818cf.tar.bz2 samba-5f4842cf65ce64bfdf577cd549565da20ca818cf.zip |
r26376: Add context for libcli_resolve.
(This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
Diffstat (limited to 'source4/torture/smb2')
-rw-r--r-- | source4/torture/smb2/scan.c | 5 | ||||
-rw-r--r-- | source4/torture/smb2/util.c | 3 |
2 files changed, 5 insertions, 3 deletions
diff --git a/source4/torture/smb2/scan.c b/source4/torture/smb2/scan.c index 1ec67492bf..84be11c047 100644 --- a/source4/torture/smb2/scan.c +++ b/source4/torture/smb2/scan.c @@ -26,6 +26,7 @@ #include "lib/events/events.h" #include "torture/torture.h" #include "param/param.h" +#include "libcli/resolve/resolve.h" #include "torture/smb2/proto.h" @@ -201,7 +202,7 @@ bool torture_smb2_scan(struct torture_context *torture) struct smb2_request *req; status = smb2_connect(mem_ctx, host, share, - lp_name_resolve_order(torture->lp_ctx), + lp_resolve_context(torture->lp_ctx), credentials, &tree, event_context_find(mem_ctx)); if (!NT_STATUS_IS_OK(status)) { @@ -218,7 +219,7 @@ bool torture_smb2_scan(struct torture_context *torture) if (!smb2_request_receive(req)) { talloc_free(tree); status = smb2_connect(mem_ctx, host, share, - lp_name_resolve_order(torture->lp_ctx), + lp_resolve_context(torture->lp_ctx), credentials, &tree, event_context_find(mem_ctx)); if (!NT_STATUS_IS_OK(status)) { diff --git a/source4/torture/smb2/util.c b/source4/torture/smb2/util.c index 3170b0073d..fe88296a32 100644 --- a/source4/torture/smb2/util.c +++ b/source4/torture/smb2/util.c @@ -27,6 +27,7 @@ #include "system/time.h" #include "librpc/gen_ndr/ndr_security.h" #include "param/param.h" +#include "libcli/resolve/resolve.h" #include "torture/torture.h" #include "torture/smb2/proto.h" @@ -310,7 +311,7 @@ bool torture_smb2_connection(struct torture_context *tctx, struct smb2_tree **tr struct cli_credentials *credentials = cmdline_credentials; status = smb2_connect(tctx, host, share, - lp_name_resolve_order(tctx->lp_ctx), + lp_resolve_context(tctx->lp_ctx), credentials, tree, event_context_find(tctx)); if (!NT_STATUS_IS_OK(status)) { |