summaryrefslogtreecommitdiff
path: root/source4/librpc
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-25 05:46:46 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:42 -0500
commit2f74901802dc1ef40467e62f1880d958e6c69eef (patch)
treef7388c1b068d5a438b35951909c53c8441a54c37 /source4/librpc
parent5fc1b68683886a8646b59bd8f01e8bdfb6bf7bbc (diff)
downloadsamba-2f74901802dc1ef40467e62f1880d958e6c69eef.tar.gz
samba-2f74901802dc1ef40467e62f1880d958e6c69eef.tar.bz2
samba-2f74901802dc1ef40467e62f1880d958e6c69eef.zip
r11891: - added pipe_flags field in smb2_trans
- while running dcerpc over SMB2, the server will occasionally send us a oh-so-useful STATUS_PENDING result meaning "I don't have a result for you yet, but I'm working on it". These can be discarded :-) (This used to be commit 24588a9c499536299d7aaf5b56ff73fb255290ca)
Diffstat (limited to 'source4/librpc')
-rw-r--r--source4/librpc/rpc/dcerpc_smb2.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb2.c b/source4/librpc/rpc/dcerpc_smb2.c
index 56d568a663..d733ab4713 100644
--- a/source4/librpc/rpc/dcerpc_smb2.c
+++ b/source4/librpc/rpc/dcerpc_smb2.c
@@ -104,6 +104,9 @@ static void smb2_read_callback(struct smb2_request *req)
ZERO_STRUCT(io);
io.in.length = MIN(state->c->srv_max_xmit_frag,
frag_length - state->data.length);
+ if (io.in.length < 16) {
+ io.in.length = 16;
+ }
io.in.handle = smb->handle;
req = smb2_read_send(smb->tree, &io);
@@ -228,9 +231,9 @@ static NTSTATUS smb2_send_trans_request(struct dcerpc_connection *c, DATA_BLOB *
state->c = c;
ZERO_STRUCT(io);
- io.in.unknown1 = 0x0011c017;
+ io.in.pipe_flags = SMB2_TRANS_PIPE_FLAGS;
io.in.handle = smb->handle;
- io.in.max_response_size = 0x10000;
+ io.in.max_response_size = 0x1000;
io.in.flags = 1;
io.in.out = *blob;
@@ -383,7 +386,9 @@ struct composite_context *dcerpc_pipe_open_smb2_send(struct dcerpc_connection *c
NTCREATEX_SHARE_ACCESS_READ |
NTCREATEX_SHARE_ACCESS_WRITE;
io.in.open_disposition = NTCREATEX_DISP_OPEN;
- io.in.create_options = 0x400040;
+ io.in.create_options =
+ NTCREATEX_OPTIONS_NON_DIRECTORY_FILE |
+ NTCREATEX_OPTIONS_UNKNOWN_400000;
io.in.impersonation = NTCREATEX_IMPERSONATION_IMPERSONATION;
if ((strncasecmp(pipe_name, "/pipe/", 6) == 0) ||