readx reply packets can be over-sized
authorAndrew Tridgell <tridge@samba.org>
Tue, 23 Mar 2004 03:13:24 +0000 (03:13 +0000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 23 Mar 2004 03:13:24 +0000 (03:13 +0000)
(This used to be commit ad42c8432b7df0ae44ca73e08d017e61a2bc6f1c)

source4/smb_server/reply.c

index 7d6450b395ea78bb6bec789c4b3c6a6de2821d42..298b2443d33c8b4c202dfdc048d8c2b9879c0329 100644 (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 */