1
0
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:
Andrew Tridgell 2004-03-23 03:13:24 +00:00
parent 3d5ea8e3e2
commit c5679b707e

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