diff options
author | Stefan Metzmacher <metze@samba.org> | 2012-05-29 07:27:14 +0200 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2012-05-29 10:16:23 +0200 |
commit | 244cf059f09fcbf7d5a85c97deed8f94756e8a4a (patch) | |
tree | 6ac6b843ce0b46c85282b398b92bf97feee73f50 /libcli | |
parent | 3085225e72c75abf84d7740334459cd971ee4c56 (diff) | |
download | samba-244cf059f09fcbf7d5a85c97deed8f94756e8a4a.tar.gz samba-244cf059f09fcbf7d5a85c97deed8f94756e8a4a.tar.bz2 samba-244cf059f09fcbf7d5a85c97deed8f94756e8a4a.zip |
s3:smb2cli_ioctl: fix requests without output_buffer.length > 0 against windows
This fixes DCERPC over SMB2 against windows servers.
metze
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb2cli_ioctl.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |