diff options
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)) { |