git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c705c35
)
SMB2 correctness fix. As we've already returned the credits in an interim
author
Jeremy Allison
<jra@samba.org>
Mon, 14 Jun 2010 23:58:15 +0000
(16:58 -0700)
committer
Jeremy Allison
<jra@samba.org>
Mon, 14 Jun 2010 23:58:15 +0000
(16:58 -0700)
response, don't add more in the final return.
Jeremy.
source3/smbd/smb2_server.c
patch
|
blob
|
history
diff --git
a/source3/smbd/smb2_server.c
b/source3/smbd/smb2_server.c
index a8104a13944cd4eda4054b23c9f2c1b8c8ef2cec..c977653e8d4d726961d392f2d3f6c70ebe21c750 100644
(file)
--- 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 =