git.samba.org
/
ira
/
tdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
54d3609
)
s4:librpc/rpc: make dcerpc_bh_is_connected() more robust
author
Stefan Metzmacher
<metze@samba.org>
Wed, 7 Mar 2012 15:52:57 +0000
(16:52 +0100)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 7 Mar 2012 16:01:17 +0000
(17:01 +0100)
metze
source4/librpc/rpc/dcerpc.c
patch
|
blob
|
history
diff --git
a/source4/librpc/rpc/dcerpc.c
b/source4/librpc/rpc/dcerpc.c
index caf421ba87d2912398531cf7b28b834b2c48a65f..8317778bc8e654fb92552ac43d4f4ee7645e5f58 100644
(file)
--- 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;
}