Fix sending of large nttrans responses.
authorAmin Azez <azez@ufomechanic.net>
Thu, 31 Jan 2008 17:04:30 +0000 (17:04 +0000)
committerStefan Metzmacher <metze@samba.org>
Fri, 1 Feb 2008 05:36:32 +0000 (06:36 +0100)
req_grow_data was growing the original req, not this_req which
was being used for the current fragment.

source/smb_server/smb/nttrans.c

index fe65b7a6675b860cee106281ffc348c3c3ae346b..dd2ec15e39c426d9640eedb4eb0a8a1d4323b97c 100644 (file)
@@ -527,7 +527,7 @@ static void reply_nttrans_send(struct ntvfs_request *ntvfs)
                        this_req = req;
                }
 
-               req_grow_data(req, this_param + this_data + (align1 + align2));
+               req_grow_data(this_req, this_param + this_data + (align1 + align2));
 
                SSVAL(this_req->out.vwv, 0, 0); /* reserved */
                SCVAL(this_req->out.vwv, 2, 0); /* reserved */