mirror of
https://github.com/samba-team/samba.git
synced 2025-12-10 04:23:50 +03:00
r15770: when there's a dynamic body, we need to send the first byte even if the
dynamic size if 0 metze
This commit is contained in:
committed by
Gerald (Jerry) Carter
parent
9c4c40772b
commit
c7e8e79d75
@@ -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
|
* which is always be part of the packet is initialized
|
||||||
*/
|
*/
|
||||||
if (body_dynamic_size) {
|
if (body_dynamic_size) {
|
||||||
|
req->out.size += 1;
|
||||||
SCVAL(req->out.dynamic, 0, 0);
|
SCVAL(req->out.dynamic, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -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
|
* which is always be part of the packet is initialized
|
||||||
*/
|
*/
|
||||||
if (body_dynamic_size) {
|
if (body_dynamic_size) {
|
||||||
|
req->out.size += 1;
|
||||||
SCVAL(req->out.dynamic, 0, 0);
|
SCVAL(req->out.dynamic, 0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user