libcli/smb: fix the credit handling on a SMB1 => SMB2 negotiate
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Aug 2013 06:12:08 +0000 (08:12 +0200)
committerStefan Metzmacher <metze@samba.org>
Thu, 15 Aug 2013 07:07:05 +0000 (09:07 +0200)
commit97288b7f1048c1bf712463293a1e62737738292c
treecf21e96d06e5b9057c9f61dae962e87726dacd94
parentf6ce50a8aca9eb024af4eb5e3dd620fe5e04e913
libcli/smb: fix the credit handling on a SMB1 => SMB2 negotiate

Our cur_credit value had 1 credit too many in the case of
an SMB1 => SMB2 upgrade. When we max out the credits the server
disconnected the connection.

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
libcli/smb/smbXcli_base.c