s4: popt: Global replace of cmdline_credentials -> popt_get_cmdline_credentials().
[gd/samba-autobuild/.git] / source4 / torture / smb2 / oplock.c
index 83197a4f4a8aa4afb82aa1281e8cdc78791f9020..635037b7124149b62af460b9c8eedb47984400b1 100644 (file)
@@ -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);