mirror of
https://github.com/samba-team/samba.git
synced 2024-12-24 21:34:56 +03:00
readx reply packets can be over-sized
(This used to be commit ad42c8432b
)
This commit is contained in:
parent
3d5ea8e3e2
commit
c5679b707e
@ -862,9 +862,8 @@ static void reply_read_and_X_send(struct request_context *req)
|
||||
|
||||
CHECK_ASYNC_STATUS;
|
||||
|
||||
/* trim the packet to the right size */
|
||||
io->readx.out.nread = MIN(io->readx.out.nread,
|
||||
req_max_data(req) - 1);
|
||||
/* readx reply packets can be over-sized */
|
||||
req->control_flags |= REQ_CONTROL_LARGE;
|
||||
req_grow_data(req, 1 + io->readx.out.nread);
|
||||
|
||||
/* construct reply */
|
||||
|
Loading…
Reference in New Issue
Block a user