BUG: https://bugzilla.samba.org/show_bug.cgi?id=13863
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
{
struct smb2_request *req;
NTSTATUS status;
+ size_t max_payload;
req = smb2_request_init_tree(tree, SMB2_OP_GETINFO, 0x28, true,
io->in.input_buffer.length);
}
SSVAL(req->out.body, 0x0C, io->in.reserved);
+ max_payload = MAX(io->in.output_buffer_length, io->in.input_buffer.length);
+ req->credit_charge = (MAX(max_payload, 1) - 1)/ 65536 + 1;
+
smb2_transport_send(req);
return req;