git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
4a884a3
)
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
Karolin Seeger
<kseeger@samba.org>
Thu, 6 May 2010 12:08:36 +0000
(14:08 +0200)
metze
(cherry picked from commit
b862351da8624df893ec77e020a456c1d23c58ed
)
(cherry picked from commit
8c2f4426ce178ac33748cfba01532ec2fd205710
)
Signed-off-by: Stefan Metzmacher <metze@samba.org>
(cherry picked from commit
3ea35cd6bb61806ed502e4cd3f386c35a6f58156
)
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 ab3a2550e8fdfcc8308c82526df1dffada9aa63b..5d3ee2bbb2759a3c6332d2876ffcad1cf610ca20 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;
}