summaryrefslogtreecommitdiff
path: root/source4/torture/smb2/oplock.c
diff options
context:
space:
mode:
Diffstat (limited to 'source4/torture/smb2/oplock.c')
-rw-r--r--source4/torture/smb2/oplock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/smb2/oplock.c b/source4/torture/smb2/oplock.c
index 83197a4f4a8..635037b7124 100644
--- a/source4/torture/smb2/oplock.c
+++ b/source4/torture/smb2/oplock.c
@@ -281,7 +281,7 @@ static bool open_smb2_connection_no_level2_oplocks(struct torture_context *tctx,
NTSTATUS status;
const char *host = torture_setting_string(tctx, "host", NULL);
const char *share = torture_setting_string(tctx, "share", NULL);
- struct cli_credentials *credentials = cmdline_credentials;
+ struct cli_credentials *credentials = popt_get_cmdline_credentials();
struct smbcli_options options;
lpcfg_smbcli_options(tctx->lp_ctx, &options);