r22866: handle incoming chained smb2 requests in our server code to let
[ab/samba.git/.git] / source4 / smb_server / smb2 / fileio.c
index 8e420458beb61976d5f79b4ae08187a234c7a07b..e399bfb90133d8a488460bb342b70b6a7ee40a69 100644 (file)
@@ -44,9 +44,13 @@ static void smb2srv_create_send(struct ntvfs_request *ntvfs)
        SBVAL(req->out.body,    0x30,   io->smb2.out.size);
        SIVAL(req->out.body,    0x38,   io->smb2.out.file_attr);
        SIVAL(req->out.body,    0x3C,   io->smb2.out._pad);
-       smb2srv_push_handle(req->out.body, 0x40,io->smb2.out.file.ntvfs);
+       smb2srv_push_handle(req->out.body, 0x40, io->smb2.out.file.ntvfs);
        SMB2SRV_CHECK(smb2_push_o32s32_blob(&req->out, 0x50, io->smb2.out.blob));
 
+       /* also setup the chained file handle */
+       req->chained_file_handle = req->_chained_file_handle;
+       smb2srv_push_handle(req->chained_file_handle, 0, io->smb2.out.file.ntvfs);
+
        smb2srv_send_reply(req);
 }