diff options
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/cli_pipe.c | 4 | ||||
-rw-r--r-- | source3/rpc_client/cli_samr.c | 4 |
2 files changed, 3 insertions, 5 deletions
diff --git a/source3/rpc_client/cli_pipe.c b/source3/rpc_client/cli_pipe.c index f8216cb1e0..a8debd87fd 100644 --- a/source3/rpc_client/cli_pipe.c +++ b/source3/rpc_client/cli_pipe.c @@ -695,13 +695,11 @@ BOOL rpc_api_pipe_req(struct cli_state *cli, uint16 fnum, uint8 op_num, prs_link(&hdr, data, NULL); } - mem_realloc_data(hdr.data, data_len); - DEBUG(100,("data_len: %x data_calc_len: %x\n", data_len, mem_buf_len(data->data))); /* this is a hack due to limitations in rpc_api_pipe */ - prs_init(&dataa, mem_buf_len(hdr.data), 4, 0x0, False); + prs_init(&dataa, data_len, 4, 0x0, False); mem_buf_copy(dataa.data->data, hdr.data, 0, mem_buf_len(hdr.data)); ret = rpc_api_pipe(cli, fnum, False, 0x0026, NULL, &dataa, &rparam, rdata); diff --git a/source3/rpc_client/cli_samr.c b/source3/rpc_client/cli_samr.c index a0cb48969d..9a68016c66 100644 --- a/source3/rpc_client/cli_samr.c +++ b/source3/rpc_client/cli_samr.c @@ -60,6 +60,8 @@ BOOL samr_chgpasswd_user( struct cli_connection *con, /* turn parameters into data stream */ samr_io_q_chgpasswd_user("", &q_e, &data, 0); + dbgflush(); + /* send the data on \PIPE\ */ if (rpc_con_pipe_req(con, SAMR_CHGPASSWD_USER, &data, &rdata)) { @@ -85,8 +87,6 @@ BOOL samr_chgpasswd_user( struct cli_connection *con, prs_mem_free(&data ); prs_mem_free(&rdata ); - cli_connection_unlink(con); - return valid_pwc; } |