From: Stefan Metzmacher Date: Tue, 6 Apr 2010 10:23:39 +0000 (+0200) Subject: s3:rpc_transport_np: use cli_state_is_connected() helper X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3ea35cd6bb61806ed502e4cd3f386c35a6f58156;p=thirdparty%2Fsamba.git s3:rpc_transport_np: use cli_state_is_connected() helper metze (cherry picked from commit b862351da8624df893ec77e020a456c1d23c58ed) (cherry picked from commit 8c2f4426ce178ac33748cfba01532ec2fd205710) Signed-off-by: Stefan Metzmacher --- diff --git a/source3/rpc_client/rpc_transport_np.c b/source3/rpc_client/rpc_transport_np.c index ab3a2550e8f..5d3ee2bbb27 100644 --- 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; }