libcli/smb: fix the credit handling on a SMB1 => SMB2 negotiate
commit801bcd084f3f3ed91668d95e9c1228e16b0b5691
authorStefan Metzmacher <metze@samba.org>
Wed, 14 Aug 2013 06:12:08 +0000 (14 08:12 +0200)
committerKarolin Seeger <kseeger@samba.org>
Fri, 30 Aug 2013 09:53:22 +0000 (30 11:53 +0200)
treeb285c3bd035191987a45ff75ce8655bd1a1b05ba
parentd9f3bd248940263e6a108cfcc61a3adeb3e7de6b
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>
(cherry picked from commit 97288b7f1048c1bf712463293a1e62737738292c)
libcli/smb/smbXcli_base.c