1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-03 13:47:25 +03:00

s3:smb2cli_ioctl: fix requests without output_buffer.length > 0 against windows

This fixes DCERPC over SMB2 against windows servers.

metze
This commit is contained in:
Stefan Metzmacher 2012-05-29 07:27:14 +02:00
parent 3085225e72
commit 244cf059f0

View File

@ -77,7 +77,7 @@ struct tevent_req *smb2cli_ioctl_send(TALLOC_CTX *mem_ctx,
if (in_output_buffer) {
output_buffer_offset = SMB2_HDR_BODY+0x38;
if (input_buffer_length > 0) {
if (input_buffer_length > 0 && output_buffer_length > 0) {
uint32_t tmp;
output_buffer_offset += input_buffer_length;
tmp = output_buffer_offset;