summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-03-23 03:13:24 +0000
committerAndrew Tridgell <tridge@samba.org>2004-03-23 03:13:24 +0000
commitc5679b707e69a931676ae074917b63b985ed17fb (patch)
tree61a4803e5b27cfd2b7ecd707f2503aa7164535ee /source4
parent3d5ea8e3e256704947664edcf74d7249e6e4d434 (diff)
downloadsamba-c5679b707e69a931676ae074917b63b985ed17fb.tar.gz
samba-c5679b707e69a931676ae074917b63b985ed17fb.tar.bz2
samba-c5679b707e69a931676ae074917b63b985ed17fb.zip
readx reply packets can be over-sized
(This used to be commit ad42c8432b7df0ae44ca73e08d017e61a2bc6f1c)
Diffstat (limited to 'source4')
-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 */