diff options
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 07f74ca229..e0a78937d5 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 04767fa634..02ac587636 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); |