From b862351da8624df893ec77e020a456c1d23c58ed Mon Sep 17 00:00:00 2001 From: Stefan Metzmacher Date: Thu, 25 Mar 2010 14:08:42 +0100 Subject: s3:rpc_transport_np: use cli_state_is_connected() helper metze --- source3/rpc_client/rpc_transport_np.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source3/rpc_client') 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; } -- cgit