summaryrefslogtreecommitdiff
path: root/source4/librpc/rpc
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2012-03-07 16:52:57 +0100
committerStefan Metzmacher <metze@samba.org>2012-03-07 17:01:17 +0100
commit01c404a67c3321c8959b47841db5c1900b4ebac4 (patch)
treedba91ebfb9f53c94da077df4aeaa2f61fac55d96 /source4/librpc/rpc
parent54d36099ec0c4e2739a954fb712a48fe2fbb7d1b (diff)
downloadsamba-01c404a67c3321c8959b47841db5c1900b4ebac4.tar.gz
samba-01c404a67c3321c8959b47841db5c1900b4ebac4.tar.bz2
samba-01c404a67c3321c8959b47841db5c1900b4ebac4.zip
s4:librpc/rpc: make dcerpc_bh_is_connected() more robust
metze
Diffstat (limited to 'source4/librpc/rpc')
-rw-r--r--source4/librpc/rpc/dcerpc.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/source4/librpc/rpc/dcerpc.c b/source4/librpc/rpc/dcerpc.c
index caf421ba87..8317778bc8 100644
--- a/source4/librpc/rpc/dcerpc.c
+++ b/source4/librpc/rpc/dcerpc.c
@@ -165,6 +165,14 @@ static bool dcerpc_bh_is_connected(struct dcerpc_binding_handle *h)
return false;
}
+ if (!hs->p->conn) {
+ return false;
+ }
+
+ if (hs->p->conn->dead) {
+ return false;
+ }
+
return true;
}