1
0
mirror of https://github.com/samba-team/samba.git synced 2025-06-30 08:49:41 +03:00

readx reply packets can be over-sized

This commit is contained in:
Andrew Tridgell
-
parent 931138cc44
commit ad42c8432b

View File

@ -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 */