summaryrefslogtreecommitdiff
path: root/source3/client
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2016-12-08 06:54:29 +0100
committerAndreas Schneider <asn@cryptomilk.org>2016-12-09 09:24:27 +0100
commit9bf8805ee98e39310dd54d5e666d7abcc2ebe1ff (patch)
tree62fbfd313e529d49ec0c7a4e8cf34fefc8f6e3d6 /source3/client
parentbae607af36786acac4454b49fc0d36ad92e4c715 (diff)
downloadsamba-9bf8805ee98e39310dd54d5e666d7abcc2ebe1ff.tar.gz
s3:client: make use of cli_tree_connect_creds() in smbspool.c
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Andreas Schneider <asn@samba.org>
Diffstat (limited to 'source3/client')
-rw-r--r--source3/client/smbspool.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c
index 7448b479fae..4803c3ece81 100644
--- a/source3/client/smbspool.c
+++ b/source3/client/smbspool.c
@@ -453,8 +453,7 @@ smb_complete_connection(const char *myname,
return NULL;
}
- nt_status = cli_tree_connect(cli, share, "?????", password,
- strlen(password) + 1);
+ nt_status = cli_tree_connect_creds(cli, share, "?????", creds);
if (!NT_STATUS_IS_OK(nt_status)) {
fprintf(stderr, "ERROR: Tree connect failed (%s)\n",
nt_errstr(nt_status));