Ensure we correctly calculate reply credits over all returned
commit35564365f49fda6505d6e350fa8b0e5ef1a4e33c
authorJeremy Allison <jra@samba.org>
Tue, 15 Nov 2011 19:27:56 +0000 (15 11:27 -0800)
committerKarolin Seeger <kseeger@samba.org>
Wed, 16 Nov 2011 19:31:35 +0000 (16 20:31 +0100)
tree67f060ff9bd878231499e913b0f1109544267923
parent5336e301db8f34325338d2b3bcef2cb614e6dddd
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).
source3/smbd/smb2_server.c