diff options
Diffstat (limited to 'source3/libsmb/libsmb_server.c')
-rw-r--r-- | source3/libsmb/libsmb_server.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/source3/libsmb/libsmb_server.c b/source3/libsmb/libsmb_server.c index deac46a59e..570b7ae849 100644 --- a/source3/libsmb/libsmb_server.c +++ b/source3/libsmb/libsmb_server.c @@ -314,9 +314,11 @@ SMBC_server_internal(TALLOC_CTX *ctx, * tid. */ - status = cli_tcon_andx(srv->cli, srv->cli->share, "?????", - *pp_password, - strlen(*pp_password)+1); + status = cli_tree_connect(srv->cli, + srv->cli->share, + "?????", + *pp_password, + strlen(*pp_password)+1); if (!NT_STATUS_IS_OK(status)) { errno = map_errno_from_nt_status(status); cli_shutdown(srv->cli); @@ -507,8 +509,8 @@ SMBC_server_internal(TALLOC_CTX *ctx, /* must be a normal share */ - status = cli_tcon_andx(c, share, "?????", *pp_password, - strlen(*pp_password)+1); + status = cli_tree_connect(c, share, "?????", *pp_password, + strlen(*pp_password)+1); if (!NT_STATUS_IS_OK(status)) { errno = map_errno_from_nt_status(status); cli_shutdown(c); |