summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--source4/smb_server/reply.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/source4/smb_server/reply.c b/source4/smb_server/reply.c
index 7d6450b395..298b2443d3 100644
--- a/source4/smb_server/reply.c
+++ b/source4/smb_server/reply.c
@@ -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 */