summaryrefslogtreecommitdiffstats
path: root/rpc/rpc-lib/src/rpc-clnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpc/rpc-lib/src/rpc-clnt.c')
-rw-r--r--rpc/rpc-lib/src/rpc-clnt.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c
index eab7551f0..f25a4b0ad 100644
--- a/rpc/rpc-lib/src/rpc-clnt.c
+++ b/rpc/rpc-lib/src/rpc-clnt.c
@@ -1546,8 +1546,11 @@ rpc_clnt_destroy (struct rpc_clnt *rpc)
if (!rpc)
return;
- if (rpc->conn.trans)
- rpc_transport_destroy (rpc->conn.trans);
+ if (rpc->conn.trans) {
+ rpc->conn.trans->mydata = NULL;
+ rpc_transport_unref (rpc->conn.trans);
+ //rpc_transport_destroy (rpc->conn.trans);
+ }
rpc_clnt_connection_cleanup (&rpc->conn);
rpc_clnt_reconnect_cleanup (&rpc->conn);