diff options
author | Volker Lendecke <vl@samba.org> | 2009-01-26 08:37:13 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2009-01-30 12:47:59 +0100 |
commit | 0bd92281e49b91a9b9a14486adbe6f44affb7a13 (patch) | |
tree | 52d898f315e99320f8e186bf37d9f9e37e28b38f /source3/client | |
parent | 7b934c6af3f80c9d75151906eed929045cec28a2 (diff) | |
download | samba-0bd92281e49b91a9b9a14486adbe6f44affb7a13.tar.gz samba-0bd92281e49b91a9b9a14486adbe6f44affb7a13.tar.bz2 samba-0bd92281e49b91a9b9a14486adbe6f44affb7a13.zip |
Make cli_tcon_andx async
Diffstat (limited to 'source3/client')
-rw-r--r-- | source3/client/smbspool.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source3/client/smbspool.c b/source3/client/smbspool.c index 1910ccd4fe..7943cf5828 100644 --- a/source3/client/smbspool.c +++ b/source3/client/smbspool.c @@ -432,10 +432,13 @@ smb_complete_connection(const char *myname, return NULL; } - if (!cli_send_tconX(cli, share, "?????", password, strlen(password) + 1)) { - fprintf(stderr, "ERROR: Tree connect failed (%s)\n", cli_errstr(cli)); + nt_status = cli_tcon_andx(cli, share, "?????", password, + strlen(password) + 1); + if (!NT_STATUS_IS_OK(nt_status)) { + fprintf(stderr, "ERROR: Tree connect failed (%s)\n", + nt_errstr(nt_status)); - if (get_exit_code(cli, cli_nt_error(cli)) == 2) { + if (get_exit_code(cli, nt_status) == 2) { *need_auth = true; } |