git.samba.org
/
obnox
/
samba-ctdb.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fb84155
)
s3:rpc_transport_np: use cli_state_is_connected() helper
author
Stefan Metzmacher
<metze@samba.org>
Tue, 6 Apr 2010 10:23:39 +0000
(12:23 +0200)
committer
Stefan Metzmacher
<metze@samba.org>
Wed, 7 Apr 2010 11:59:16 +0000
(13:59 +0200)
metze
(cherry picked from commit
b862351da8624df893ec77e020a456c1d23c58ed
)
(cherry picked from commit
8c2f4426ce178ac33748cfba01532ec2fd205710
)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
source3/rpc_client/rpc_transport_np.c
patch
|
blob
|
history
diff --git
a/source3/rpc_client/rpc_transport_np.c
b/source3/rpc_client/rpc_transport_np.c
index f502ced0ccc3653245235a7ddbf74efd0ff27312..1997e9c8c9d3042fa0263e94ef789647f26535e5 100644
(file)
--- a/
source3/rpc_client/rpc_transport_np.c
+++ b/
source3/rpc_client/rpc_transport_np.c
@@
-32,7
+32,7
@@
static int rpc_transport_np_state_destructor(struct rpc_transport_np_state *s)
{
bool ret;
- if (
s->cli->fd == -1
) {
+ if (
!cli_state_is_connected(s->cli)
) {
DEBUG(10, ("socket was closed, no need to send close request.\n"));
return 0;
}