diff options
author | Andrew Tridgell <tridge@samba.org> | 2003-12-11 09:07:45 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2003-12-11 09:07:45 +0000 |
commit | fcc4efd1ea637c810eed8444080b87d7f92c837a (patch) | |
tree | 9f72b2b7b5780acc182e84532a54ae6dc26afb3a /source4/libcli | |
parent | e5ed18db65f33ef0b0151fc34b02e049b14d1ecd (diff) | |
download | samba-fcc4efd1ea637c810eed8444080b87d7f92c837a.tar.gz samba-fcc4efd1ea637c810eed8444080b87d7f92c837a.tar.bz2 samba-fcc4efd1ea637c810eed8444080b87d7f92c837a.zip |
the next step in the dcerpc server code. Added the link between the
IPC IO routines and the dcerpc endpoint servers.
(This used to be commit 4929c53bc8dddda8a763fdfbcf81a79776d01113)
Diffstat (limited to 'source4/libcli')
-rw-r--r-- | source4/libcli/raw/rawtrans.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/source4/libcli/raw/rawtrans.c b/source4/libcli/raw/rawtrans.c index f31b1eaf7e..f7a3b4aa43 100644 --- a/source4/libcli/raw/rawtrans.c +++ b/source4/libcli/raw/rawtrans.c @@ -233,6 +233,11 @@ struct cli_request *smb_raw_trans_send_backend(struct cli_tree *tree, /* make sure we don't leak data via the padding */ memset(req->out.data, 0, padding); + if (command == SMBtrans && parms->in.trans_name) { + namelen = cli_req_append_string(req, parms->in.trans_name, + STR_TERMINATE); + } + /* primary request */ SSVAL(req->out.vwv,VWV(0),parms->in.params.length); SSVAL(req->out.vwv,VWV(1),parms->in.data.length); @@ -243,9 +248,6 @@ struct cli_request *smb_raw_trans_send_backend(struct cli_tree *tree, SIVAL(req->out.vwv,VWV(6),parms->in.timeout); SSVAL(req->out.vwv,VWV(8),0); /* reserved */ SSVAL(req->out.vwv,VWV(9),parms->in.params.length); - if (command == SMBtrans && parms->in.trans_name) - namelen = cli_req_append_string(req, parms->in.trans_name, - STR_TERMINATE); SSVAL(req->out.vwv,VWV(10),PTR_DIFF(outparam,req->out.hdr)+namelen); SSVAL(req->out.vwv,VWV(11),parms->in.data.length); SSVAL(req->out.vwv,VWV(12),PTR_DIFF(outdata,req->out.hdr)+namelen); |