summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc/dcerpc_smb2.c
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2007-04-22 23:00:22 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:51:29 -0500
commit1912124dbfc501c5109f6ac36e125406078d408c (patch)
treea863846bd767627125f22abd26be74db66d81664 /source4/librpc/rpc/dcerpc_smb2.c
parentcc5ad07d84df94f8f2bc16fcb8015f1cf843c1e3 (diff)
downloadsamba-1912124dbfc501c5109f6ac36e125406078d408c.tar.gz
samba-1912124dbfc501c5109f6ac36e125406078d408c.tar.bz2
samba-1912124dbfc501c5109f6ac36e125406078d408c.zip
r22470: merge handling of broken connections from wins replication client code
to the rpc client code we need to always ask for read events on the socket otherwise we never get the connection error reported. shutdown the transport when a request timeout. metze (This used to be commit 3403c0cb15e08ec838b0bc834f941051fb94d124)
Diffstat (limited to 'source4/librpc/rpc/dcerpc_smb2.c')
-rw-r--r--source4/librpc/rpc/dcerpc_smb2.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/source4/librpc/rpc/dcerpc_smb2.c b/source4/librpc/rpc/dcerpc_smb2.c
index 20d1c7c211..d2ab47898e 100644
--- a/source4/librpc/rpc/dcerpc_smb2.c
+++ b/source4/librpc/rpc/dcerpc_smb2.c
@@ -299,14 +299,14 @@ static NTSTATUS smb2_send_request(struct dcerpc_connection *c, DATA_BLOB *blob,
/*
shutdown SMB pipe connection
*/
-static NTSTATUS smb2_shutdown_pipe(struct dcerpc_connection *c)
+static NTSTATUS smb2_shutdown_pipe(struct dcerpc_connection *c, NTSTATUS status)
{
struct smb2_private *smb = c->transport.private;
struct smb2_close io;
struct smb2_request *req;
/* maybe we're still starting up */
- if (!smb) return NT_STATUS_OK;
+ if (!smb) return status;
ZERO_STRUCT(io);
io.in.file.handle = smb->handle;
@@ -318,7 +318,7 @@ static NTSTATUS smb2_shutdown_pipe(struct dcerpc_connection *c)
talloc_free(smb);
- return NT_STATUS_OK;
+ return status;
}
/*