summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-03-29 22:19:58 +0000
committerJeremy Allison <jra@samba.org>2000-03-29 22:19:58 +0000
commit0d9d264625e482f55b2c5b76d7aa7d989529dd07 (patch)
treeeca006b90a2885d41b76e7913f94545fc93ef22c
parent99665730764d825924b961cb4e39dbff2ed550b3 (diff)
downloadsamba-0d9d264625e482f55b2c5b76d7aa7d989529dd07.tar.gz
samba-0d9d264625e482f55b2c5b76d7aa7d989529dd07.tar.bz2
samba-0d9d264625e482f55b2c5b76d7aa7d989529dd07.zip
Fixed bug found by JF where if the amount of data to return in the prs_struct
was small enough to pass the SMBtrans max data test we weren't setting the "more data needed" error. I was fogetting the RPC_HEADER_LEN.... I now check the correct length (current pdu staging area length). More printer spool enum stuff works now. This bug does not affect TNG. Jeremy. (This used to be commit 1c9d2c016a78b0ed11dc68adeabb709903444837)
-rw-r--r--source3/smbd/ipc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/smbd/ipc.c b/source3/smbd/ipc.c
index fc05811ccf..271b0e253b 100644
--- a/source3/smbd/ipc.c
+++ b/source3/smbd/ipc.c
@@ -3215,7 +3215,7 @@ static BOOL api_rpc_trans_reply(char *outbuf, pipes_struct *p)
return False;
}
- send_trans_reply(outbuf, NULL, 0, rdata, data_len, (int)prs_offset(&p->out_data.rdata) > data_len);
+ send_trans_reply(outbuf, NULL, 0, rdata, data_len, p->out_data.current_pdu_len > data_len);
free(rdata);
return True;