From 244cf059f09fcbf7d5a85c97deed8f94756e8a4a Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Tue, 29 May 2012 07:27:14 +0200 Subject: s3:smb2cli_ioctl: fix requests without output_buffer.length > 0 against windows This fixes DCERPC over SMB2 against windows servers. metze --- libcli/smb/smb2cli_ioctl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libcli/smb/smb2cli_ioctl.c b/libcli/smb/smb2cli_ioctl.c index 2881c742ce..983646981a 100644 --- a/libcli/smb/smb2cli_ioctl.c +++ b/libcli/smb/smb2cli_ioctl.c @@ -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; -- cgit