diff options
author | Andrew Tridgell <tridge@samba.org> | 2005-11-25 05:46:46 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 13:46:42 -0500 |
commit | 2f74901802dc1ef40467e62f1880d958e6c69eef (patch) | |
tree | f7388c1b068d5a438b35951909c53c8441a54c37 /source4/libcli/smb2 | |
parent | 5fc1b68683886a8646b59bd8f01e8bdfb6bf7bbc (diff) | |
download | samba-2f74901802dc1ef40467e62f1880d958e6c69eef.tar.gz samba-2f74901802dc1ef40467e62f1880d958e6c69eef.tar.xz 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/libcli/smb2')
-rw-r--r-- | source4/libcli/smb2/smb2_calls.h | 4 | ||||
-rw-r--r-- | source4/libcli/smb2/transport.c | 7 |
2 files changed, 10 insertions, 1 deletions
diff --git a/source4/libcli/smb2/smb2_calls.h b/source4/libcli/smb2/smb2_calls.h index 07f74ca2293..e0a78937d58 100644 --- a/source4/libcli/smb2/smb2_calls.h +++ b/source4/libcli/smb2/smb2_calls.h @@ -304,9 +304,11 @@ struct smb2_find { } out; }; +#define SMB2_TRANS_PIPE_FLAGS 0x0011c017 /* what are these? */ + struct smb2_trans { struct { - uint32_t unknown1; + uint32_t pipe_flags; struct smb2_handle handle; uint32_t unknown2; uint32_t max_response_size; diff --git a/source4/libcli/smb2/transport.c b/source4/libcli/smb2/transport.c index 04767fa6342..02ac587636a 100644 --- a/source4/libcli/smb2/transport.c +++ b/source4/libcli/smb2/transport.c @@ -185,6 +185,13 @@ static NTSTATUS smb2_transport_finish_recv(void *private, DATA_BLOB blob) req->in.body_size = req->in.size - (SMB2_HDR_BODY+NBT_HDR_SIZE); req->status = NT_STATUS(IVAL(hdr, SMB2_HDR_STATUS)); + if (NT_STATUS_EQUAL(req->status, STATUS_PENDING)) { + /* the server has helpfully told us that this request is still being + processed. how useful :) */ + talloc_free(buffer); + return NT_STATUS_OK; + } + buffer_code = SVAL(req->in.body, 0); req->in.dynamic = NULL; dynamic_size = req->in.body_size - (buffer_code & ~1); |