Ensure we correctly calculate reply credits over all returned
commitdda4a8b1f05f4fd843e4fde930c1edf926e31870
authorJeremy Allison <jra@samba.org>
Tue, 15 Nov 2011 19:27:56 +0000 (15 11:27 -0800)
committerKarolin Seeger <kseeger@samba.org>
Mon, 23 Jan 2012 20:27:56 +0000 (23 21:27 +0100)
treeba9e651bb16086874074823423fab0a01df95a5a
parentd384873d8841ee3afce1bd3f37c99a88436b9a08
Ensure we correctly calculate reply credits over all returned
SMB2 replies, and do as Windows does and return the total in the
last SMB2 reply. Fixes an issue found by Christian M Ambach <christian.ambach@de.ibm.com>
(and thanks to Christian for the initial patch this was based on).
(cherry picked from commit 65566dfa8629136eaf0dc1491502dc651d1a4858)

Fix bug #8614 (SMB2: not granting credits for all requests in a compound
request).
(cherry picked from commit 35564365f49fda6505d6e350fa8b0e5ef1a4e33c)
source3/smbd/smb2_server.c