mirror of
https://github.com/samba-team/samba.git
synced 2025-12-06 16:23:49 +03:00
readx reply packets can be over-sized
This commit is contained in:
@@ -862,9 +862,8 @@ static void reply_read_and_X_send(struct request_context *req)
|
|||||||
|
|
||||||
CHECK_ASYNC_STATUS;
|
CHECK_ASYNC_STATUS;
|
||||||
|
|
||||||
/* trim the packet to the right size */
|
/* readx reply packets can be over-sized */
|
||||||
io->readx.out.nread = MIN(io->readx.out.nread,
|
req->control_flags |= REQ_CONTROL_LARGE;
|
||||||
req_max_data(req) - 1);
|
|
||||||
req_grow_data(req, 1 + io->readx.out.nread);
|
req_grow_data(req, 1 + io->readx.out.nread);
|
||||||
|
|
||||||
/* construct reply */
|
/* construct reply */
|
||||||
|
|||||||
Reference in New Issue
Block a user