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/passchange.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/passchange.c')
-rw-r--r-- | source3/libsmb/passchange.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/libsmb/passchange.c b/source3/libsmb/passchange.c index 76b06088d6..f9ff4b3191 100644 --- a/source3/libsmb/passchange.c +++ b/source3/libsmb/passchange.c @@ -138,13 +138,13 @@ NTSTATUS remote_password_change(const char *remote_machine, const char *user_nam cli_init_creds(cli, user_name, "", old_passwd); } - if (!cli_send_tconX(cli, "IPC$", "IPC", "", 1)) { - if (asprintf(err_str, "machine %s rejected the tconX on the IPC$ " - "share. Error was : %s.\n", - remote_machine, cli_errstr(cli)) == -1) { + result = cli_tcon_andx(cli, "IPC$", "IPC", "", 1); + if (!NT_STATUS_IS_OK(result)) { + if (asprintf(err_str, "machine %s rejected the tconX on the " + "IPC$ share. Error was : %s.\n", + remote_machine, nt_errstr(result))) { *err_str = NULL; } - result = cli_nt_error(cli); cli_shutdown(cli); return result; } |