diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/gentest.c | 2 | ||||
-rw-r--r-- | source4/torture/locktest.c | 1 | ||||
-rw-r--r-- | source4/torture/masktest.c | 5 |
3 files changed, 7 insertions, 1 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c index eb948f64b1..9e2456d236 100644 --- a/source4/torture/gentest.c +++ b/source4/torture/gentest.c @@ -227,6 +227,7 @@ static bool connect_servers(struct event_context *ev, if (options.smb2) { status = smb2_connect(NULL, servers[i].server_name, + lp_smb_ports(lp_ctx), servers[i].share_name, lp_resolve_context(lp_ctx), servers[i].credentials, @@ -240,6 +241,7 @@ static bool connect_servers(struct event_context *ev, servers[i].server_name, lp_smb_ports(lp_ctx), servers[i].share_name, "A:", + lp_socket_options(lp_ctx), servers[i].credentials, lp_resolve_context(lp_ctx), ev, &smb_options, diff --git a/source4/torture/locktest.c b/source4/torture/locktest.c index 819fbe072b..4beef98a8f 100644 --- a/source4/torture/locktest.c +++ b/source4/torture/locktest.c @@ -164,6 +164,7 @@ static struct smbcli_state *connect_one(struct event_context *ev, server, lp_smb_ports(lp_ctx), share, NULL, + lp_socket_options(lp_ctx), servers[snum], lp_resolve_context(lp_ctx), ev, &options, &session_options, diff --git a/source4/torture/masktest.c b/source4/torture/masktest.c index 14d597666e..fb1277a95a 100644 --- a/source4/torture/masktest.c +++ b/source4/torture/masktest.c @@ -76,6 +76,7 @@ static struct smbcli_state *connect_one(struct resolve_context *resolve_ctx, struct event_context *ev, TALLOC_CTX *mem_ctx, char *share, const char **ports, + const char *socket_options, struct smbcli_options *options, struct smbcli_session_options *session_options, struct smb_iconv_convenience *iconv_convenience) @@ -96,6 +97,7 @@ static struct smbcli_state *connect_one(struct resolve_context *resolve_ctx, server, ports, share, NULL, + socket_options, cmdline_credentials, resolve_ctx, ev, options, session_options, iconv_convenience); @@ -368,7 +370,8 @@ static void usage(poptContext pc) lp_smbcli_session_options(lp_ctx, &session_options); cli = connect_one(lp_resolve_context(lp_ctx), ev, mem_ctx, share, - lp_smb_ports(lp_ctx), &options, &session_options, + lp_smb_ports(lp_ctx), lp_socket_options(lp_ctx), + &options, &session_options, lp_iconv_convenience(lp_ctx)); if (!cli) { DEBUG(0,("Failed to connect to %s\n", share)); |