summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2010-06-14 16:58:15 -0700
committerJeremy Allison <jra@samba.org>2010-06-14 16:58:15 -0700
commitdd2fad01fd50f2617bd8ee43e1329e6c0f942e54 (patch)
tree0adaec19fef33a9de5277e15da7031c27ad641a3
parentc705c35076fa7a200d0156199d68870e73d1f30b (diff)
downloadsamba-dd2fad01fd50f2617bd8ee43e1329e6c0f942e54.tar.gz
samba-dd2fad01fd50f2617bd8ee43e1329e6c0f942e54.tar.bz2
samba-dd2fad01fd50f2617bd8ee43e1329e6c0f942e54.zip
SMB2 correctness fix. As we've already returned the credits in an interim
response, don't add more in the final return. Jeremy.
-rw-r--r--source3/smbd/smb2_server.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source3/smbd/smb2_server.c b/source3/smbd/smb2_server.c
index a8104a1394..c977653e8d 100644
--- a/source3/smbd/smb2_server.c
+++ b/source3/smbd/smb2_server.c
@@ -876,6 +876,8 @@ NTSTATUS smbd_smb2_request_pending_queue(struct smbd_smb2_request *req,
reqhdr = (uint8_t *)req->out.vector[1].iov_base;
SIVAL(reqhdr, SMB2_HDR_FLAGS, flags | SMB2_HDR_FLAG_ASYNC);
SBVAL(reqhdr, SMB2_HDR_PID, async_id);
+ /* Only return credits on the interim response. */
+ SSVAL(reqhdr, SMB2_HDR_CREDIT, 0);
{
const uint8_t *inhdr =