From 0d9d264625e482f55b2c5b76d7aa7d989529dd07 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Wed, 29 Mar 2000 22:19:58 +0000 Subject: 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) --- source3/smbd/ipc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit