summaryrefslogtreecommitdiff
path: root/source4/smb_server/smb2/tcon.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-10-31 13:43:01 +0100
committerStefan Metzmacher <metze@samba.org>2011-10-31 19:39:03 +0100
commit95ca06410310589ef2ccf95f25b089dae756b1d0 (patch)
treed1033424d5a66f1af099e1a34b19c0c7fef4faed /source4/smb_server/smb2/tcon.c
parentf30fe1decdad3090655a759aeecd027bd59c386c (diff)
downloadsamba-95ca06410310589ef2ccf95f25b089dae756b1d0.tar.gz
samba-95ca06410310589ef2ccf95f25b089dae756b1d0.tar.bz2
samba-95ca06410310589ef2ccf95f25b089dae756b1d0.zip
s4:smb_server/smb2: always grant the requested credits
At least one credit, if the client asked for 0. metze
Diffstat (limited to 'source4/smb_server/smb2/tcon.c')
-rw-r--r--source4/smb_server/smb2/tcon.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/source4/smb_server/smb2/tcon.c b/source4/smb_server/smb2/tcon.c
index 0dac29cf57..6ee2eb5f8e 100644
--- a/source4/smb_server/smb2/tcon.c
+++ b/source4/smb_server/smb2/tcon.c
@@ -359,23 +359,14 @@ failed:
static void smb2srv_tcon_send(struct smb2srv_request *req, union smb_tcon *io)
{
- uint16_t credit;
-
if (!NT_STATUS_IS_OK(req->status)) {
smb2srv_send_error(req, req->status);
return;
}
- if (io->smb2.out.share_type == NTVFS_IPC) {
- /* if it's an IPC share vista returns 0x0005 */
- credit = 0x0005;
- } else {
- credit = 0x0001;
- }
SMB2SRV_CHECK(smb2srv_setup_reply(req, 0x10, false, 0));
SIVAL(req->out.hdr, SMB2_HDR_TID, io->smb2.out.tid);
- SSVAL(req->out.hdr, SMB2_HDR_CREDIT,credit);
SCVAL(req->out.body, 0x02, io->smb2.out.share_type);
SCVAL(req->out.body, 0x03, io->smb2.out.reserved);