From: Stefan Metzmacher Date: Tue, 26 Jun 2012 12:23:12 +0000 (+0200) Subject: s3:smb2_server: start the connection with one credit granted to the client X-Git-Url: http://git.samba.org/?a=commitdiff_plain;h=138535dfc528ed66295991d10d063dbfd1a78ced;p=metze%2Fsamba%2Fwip.git s3:smb2_server: start the connection with one credit granted to the client metze (cherry picked from commit 0b8eac9b79197c4659a5738f1b9399b3c88f2f8d) --- diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c index 8a5d81f87b22..017fe7ed6e9c 100644 --- a/source3/smbd/smb2_server.c +++ b/source3/smbd/smb2_server.c @@ -114,7 +114,7 @@ static NTSTATUS smbd_initialize_smb2(struct smbd_server_connection *sconn) sconn->smb2.sessions.limit = 0x0000FFFE; sconn->smb2.sessions.list = NULL; sconn->smb2.seqnum_low = 0; - sconn->smb2.credits_granted = 0; + sconn->smb2.credits_granted = 1; sconn->smb2.max_credits = lp_smb2_max_credits(); sconn->smb2.credits_bitmap = bitmap_talloc(sconn, DEFAULT_SMB2_MAX_CREDIT_BITMAP_FACTOR*sconn->smb2.max_credits);