summaryrefslogtreecommitdiff
path: root/source3/smbd
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-04-21 02:36:37 +0000
committerLuke Leighton <lkcl@samba.org>1998-04-21 02:36:37 +0000
commit76d3bc36a5ce13d2a7bd08f9c18b2cfd0ab0210f (patch)
treead49317a8f466c80d2430883098969f994f583cc /source3/smbd
parentc41f6c8fdf20ead45658f93ab4d42cb97545f10d (diff)
downloadsamba-76d3bc36a5ce13d2a7bd08f9c18b2cfd0ab0210f.tar.gz
samba-76d3bc36a5ce13d2a7bd08f9c18b2cfd0ab0210f.tar.bz2
samba-76d3bc36a5ce13d2a7bd08f9c18b2cfd0ab0210f.zip
put server-side long dce/rpc code in main branch.
(This used to be commit 2e1a08b28c1c0c9ea988a09067cd149926f25c69)
Diffstat (limited to 'source3/smbd')
-rw-r--r--source3/smbd/ipc.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index 7cf4d6f5b8..74ae115217 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -3255,9 +3255,9 @@ static BOOL api_dce_rpc_command(char *outbuf,
if (reply)
{
/* now send the reply */
- send_trans_reply(outbuf, p->rhdr.data, NULL, NULL, 0, p->max_rdata_len);
+ send_trans_reply(outbuf, p->rhdr.data, NULL, NULL, 0, p->file_offset);
- if (mem_buf_len(p->rhdr.data) <= p->max_rdata_len)
+ if (mem_buf_len(p->rhdr.data) <= p->file_offset)
{
/* all of data was sent: no need to wait for SMBreadX calls */
mem_free_data(p->rhdr .data);
@@ -3283,7 +3283,7 @@ static BOOL api_SNPHS(char *outbuf, pipes_struct *p, char *param)
if (set_rpc_pipe_hnd_state(p, id))
{
/* now send the reply */
- send_trans_reply(outbuf, NULL, NULL, NULL, 0, p->max_rdata_len);
+ send_trans_reply(outbuf, NULL, NULL, NULL, 0, p->file_offset);
return True;
}
@@ -3366,10 +3366,10 @@ static int api_fd_reply(int cnum,uint16 vuid,char *outbuf,
tdscnt,tpscnt,mdrcnt,mprcnt,cnum,vuid));
/* record maximum data length that can be transmitted in an SMBtrans */
- p->max_rdata_len = mdrcnt;
+ p->file_offset = mdrcnt;
- DEBUG(10,("api_fd_reply: p:%p max_rdata_len: %d\n",
- p, p->max_rdata_len));
+ DEBUG(10,("api_fd_reply: p:%p file_offset: %d\n",
+ p, p->file_offset));
switch (subcommand)
{