From 2f74901802dc1ef40467e62f1880d958e6c69eef Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Fri, 25 Nov 2005 05:46:46 +0000 Subject: 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) --- source4/libcli/smb2/transport.c | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'source4/libcli/smb2/transport.c') 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); -- cgit