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/libsmb/clidfs.c | |
parent | 7b934c6af3f80c9d75151906eed929045cec28a2 (diff) | |
download | samba-0bd92281e49b91a9b9a14486adbe6f44affb7a13.tar.gz samba-0bd92281e49b91a9b9a14486adbe6f44affb7a13.tar.bz2 samba-0bd92281e49b91a9b9a14486adbe6f44affb7a13.zip |
Make cli_tcon_andx async
Diffstat (limited to 'source3/libsmb/clidfs.c')
-rw-r--r-- | source3/libsmb/clidfs.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source3/libsmb/clidfs.c b/source3/libsmb/clidfs.c index f853e4e670..e642f169f9 100644 --- a/source3/libsmb/clidfs.c +++ b/source3/libsmb/clidfs.c @@ -275,9 +275,10 @@ static struct cli_state *do_connect(TALLOC_CTX *ctx, /* must be a normal share */ - if (!cli_send_tconX(c, sharename, "?????", - password, strlen(password)+1)) { - d_printf("tree connect failed: %s\n", cli_errstr(c)); + status = cli_tcon_andx(c, sharename, "?????", + password, strlen(password)+1); + if (!NT_STATUS_IS_OK(status)) { + d_printf("tree connect failed: %s\n", nt_errstr(status)); cli_shutdown(c); return NULL; } @@ -1077,7 +1078,7 @@ static bool cli_check_msdfs_proxy(TALLOC_CTX *ctx, /* check for the referral */ - if (!cli_send_tconX(cli, "IPC$", "IPC", NULL, 0)) { + if (!NT_STATUS_IS_OK(cli_tcon_andx(cli, "IPC$", "IPC", NULL, 0))) { return false; } |