diff options
Diffstat (limited to 'source4/libcli/raw/rawtrans.c')
-rw-r--r-- | source4/libcli/raw/rawtrans.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/source4/libcli/raw/rawtrans.c b/source4/libcli/raw/rawtrans.c index 508f920268..f8076f7133 100644 --- a/source4/libcli/raw/rawtrans.c +++ b/source4/libcli/raw/rawtrans.c @@ -206,7 +206,6 @@ struct cli_request *smb_raw_trans2_send(struct cli_tree *tree, int wct = 14 + parms->in.setup_count; struct cli_request *req; char *outdata,*outparam; - int data_sent, param_sent; int i; const int padding = 3; @@ -216,10 +215,8 @@ struct cli_request *smb_raw_trans2_send(struct cli_tree *tree, } /* fill in SMB parameters */ - data_sent = parms->in.data.length; - param_sent = parms->in.params.length; outparam = req->out.data + padding; - outdata = outparam + param_sent; + outdata = outparam + parms->in.params.length; /* make sure we don't leak data via the padding */ memset(req->out.data, 0, padding); |