git.samba.org
/
kai
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3085225
)
s3:smb2cli_ioctl: fix requests without output_buffer.length > 0 against windows
author
Stefan Metzmacher
<metze@samba.org>
Tue, 29 May 2012 05:27:14 +0000
(07:27 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Tue, 29 May 2012 08:16:23 +0000
(10:16 +0200)
This fixes DCERPC over SMB2 against windows servers.
metze
libcli/smb/smb2cli_ioctl.c
patch
|
blob
|
history
diff --git
a/libcli/smb/smb2cli_ioctl.c
b/libcli/smb/smb2cli_ioctl.c
index 2881c742ce5bd63efba2999c48ac71018f62315a..983646981a78f2f0945d76689001608444ed7b4a 100644
(file)
--- 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;