From fc8bfeea31528b2842fdde22203d576fab8adb92 Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Sun, 9 Jan 2011 19:13:15 +0100 Subject: s3: Remove cli_send_trans from cli_oem_change_password --- source3/libsmb/clirap.c | 20 +++++--------------- 1 file 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); } -- cgit