diff options
author | Volker Lendecke <vl@samba.org> | 2011-01-09 19:13:15 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2011-01-17 08:03:40 +0100 |
commit | fc8bfeea31528b2842fdde22203d576fab8adb92 (patch) | |
tree | 1af3bbeb886809884a0442a696b457bcd8e6ed98 /source3 | |
parent | 7320f1988cd937ed27b6612dec742798d8c41501 (diff) | |
download | samba-fc8bfeea31528b2842fdde22203d576fab8adb92.tar.gz samba-fc8bfeea31528b2842fdde22203d576fab8adb92.tar.bz2 samba-fc8bfeea31528b2842fdde22203d576fab8adb92.zip |
s3: Remove cli_send_trans from cli_oem_change_password
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clirap.c | 20 |
1 files changed, 5 insertions, 15 deletions
diff --git a/source3/libsmb/clirap.c b/source3/libsmb/clirap.c index 6af3d15315..c6b8cfb1cc 100644 --- a/source3/libsmb/clirap.c +++ b/source3/libsmb/clirap.c @@ -498,26 +498,16 @@ bool cli_oem_change_password(struct cli_state *cli, const char *user, const char data_len = 532; - if (cli_send_trans(cli,SMBtrans, - PIPE_LANMAN, /* name */ - 0,0, /* fid, flags */ - NULL,0,0, /* setup, length, max */ - param,param_len,4, /* param, length, max */ - (char *)data,data_len,0 /* data, length, max */ - ) == False) { + if (!cli_api(cli, + param, param_len, 4, /* param, length, max */ + (char *)data, data_len, 0, /* data, length, max */ + &rparam, &rprcnt, + &rdata, &rdrcnt)) { DEBUG(0,("cli_oem_change_password: Failed to send password change for user %s\n", user )); return False; } - if (!cli_receive_trans(cli,SMBtrans, - &rparam, &rprcnt, - &rdata, &rdrcnt)) { - DEBUG(0,("cli_oem_change_password: Failed to recieve reply to password change for user %s\n", - user )); - return False; - } - if (rparam) { cli->rap_error = SVAL(rparam,0); } |