summaryrefslogtreecommitdiff
path: root/source4/torture/gentest.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2008-09-30 03:07:08 +0200
committerJelmer Vernooij <jelmer@samba.org>2008-09-30 03:07:08 +0200
commit235b729309a17fa44fecf743db5fe6552f67f577 (patch)
treeda1c3bd3f90e95c103f596a3ff131a3cee8f25ef /source4/torture/gentest.c
parent181ee01da67985f5db684500247d655ce72fe611 (diff)
downloadsamba-235b729309a17fa44fecf743db5fe6552f67f577.tar.gz
Cope with API changes.
Diffstat (limited to 'source4/torture/gentest.c')
-rw-r--r--source4/torture/gentest.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/source4/torture/gentest.c b/source4/torture/gentest.c
index fecdfda56ef..3bf3ad8b1bf 100644
--- a/source4/torture/gentest.c
+++ b/source4/torture/gentest.c
@@ -214,7 +214,9 @@ static bool connect_servers(struct event_context *ev,
for (j=0;j<NINSTANCES;j++) {
NTSTATUS status;
struct smbcli_options smb_options;
+ struct smbcli_session_options smb_session_options;
lp_smbcli_options(lp_ctx, &smb_options);
+ lp_smbcli_session_options(lp_ctx, &smb_session_options);
printf("Connecting to \\\\%s\\%s as %s - instance %d\n",
servers[i].server_name, servers[i].share_name,
@@ -238,7 +240,8 @@ static bool connect_servers(struct event_context *ev,
servers[i].share_name, "A:",
servers[i].credentials,
lp_resolve_context(lp_ctx), ev,
- &smb_options);
+ &smb_options,
+ &smb_session_options);
}
if (!NT_STATUS_IS_OK(status)) {
printf("Failed to connect to \\\\%s\\%s - %s\n",