diff options
author | Stefan Metzmacher <metze@samba.org> | 2010-03-25 14:08:42 +0100 |
---|---|---|
committer | Stefan Metzmacher <metze@samba.org> | 2010-03-29 18:11:15 +0200 |
commit | b862351da8624df893ec77e020a456c1d23c58ed (patch) | |
tree | 5063df10bef970f9bcad1408bbd49de53c38345c /source3/rpc_client | |
parent | d7bf30ef92031ffddcde3680b38e602510bcae24 (diff) | |
download | samba-b862351da8624df893ec77e020a456c1d23c58ed.tar.gz samba-b862351da8624df893ec77e020a456c1d23c58ed.tar.bz2 samba-b862351da8624df893ec77e020a456c1d23c58ed.zip |
s3:rpc_transport_np: use cli_state_is_connected() helper
metze
Diffstat (limited to 'source3/rpc_client')
-rw-r--r-- | source3/rpc_client/rpc_transport_np.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c index de734fe17d..5b6a2d6ae0 100644 --- a/source3/rpc_client/rpc_transport_np.c +++ b/source3/rpc_client/rpc_transport_np.c @@ -30,7 +30,7 @@ struct rpc_transport_np_state { static int rpc_transport_np_state_destructor(struct rpc_transport_np_state *s) { - 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; } |