summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2006-05-21 10:13:49 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:08:16 -0500
commit1911475976de4a54787ac263eb4b15cb3db5eea3 (patch)
tree0b5fb09c8254bdbb41f8b59ab66e63a0a56698ac /source4
parente0dcbe8dd1d89670a2b4df0415b41b66b70fe487 (diff)
downloadsamba-1911475976de4a54787ac263eb4b15cb3db5eea3.tar.gz
samba-1911475976de4a54787ac263eb4b15cb3db5eea3.tar.bz2
samba-1911475976de4a54787ac263eb4b15cb3db5eea3.zip
r15770: when there's a dynamic body, we need to send the first byte even if the
dynamic size if 0 metze (This used to be commit c7e8e79d75fd53fa37e9220e5bc9cac7ab574ff6)
Diffstat (limited to 'source4')
-rw-r--r--source4/libcli/smb2/request.c1
-rw-r--r--source4/smb_server/smb2/receive.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/source4/libcli/smb2/request.c b/source4/libcli/smb2/request.c
index e631375a52..43445575f0 100644
--- a/source4/libcli/smb2/request.c
+++ b/source4/libcli/smb2/request.c
@@ -94,6 +94,7 @@ struct smb2_request *smb2_request_init(struct smb2_transport *transport, uint16_
* which is always be part of the packet is initialized
*/
if (body_dynamic_size) {
+ req->out.size += 1;
SCVAL(req->out.dynamic, 0, 0);
}
diff --git a/source4/smb_server/smb2/receive.c b/source4/smb_server/smb2/receive.c
index abd825adcc..ac1f691f8a 100644
--- a/source4/smb_server/smb2/receive.c
+++ b/source4/smb_server/smb2/receive.c
@@ -85,6 +85,7 @@ NTSTATUS smb2srv_setup_reply(struct smb2srv_request *req, uint16_t body_fixed_si
* which is always be part of the packet is initialized
*/
if (body_dynamic_size) {
+ req->out.size += 1;
SCVAL(req->out.dynamic, 0, 0);
}