mirror of
https://github.com/samba-team/samba.git
synced 2024-12-28 07:21:54 +03:00
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 commit is contained in:
parent
cc3ad82521
commit
1c9d2c016a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user