diff options
Diffstat (limited to 'rpc')
| -rw-r--r-- | rpc/rpc-lib/src/rpc-clnt.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/rpc/rpc-lib/src/rpc-clnt.c b/rpc/rpc-lib/src/rpc-clnt.c index c57c38d3117..5513b6db046 100644 --- a/rpc/rpc-lib/src/rpc-clnt.c +++ b/rpc/rpc-lib/src/rpc-clnt.c @@ -1645,8 +1645,10 @@ rpc_clnt_trigger_destroy (struct rpc_clnt *rpc)          /* This is to account for rpc_clnt_disable that might have been called           * before rpc_clnt_unref */ -        if (trans) +        if (trans) {                  rpc_transport_unref (trans); +                conn->trans = NULL; +        }  }  static void @@ -1741,7 +1743,6 @@ rpc_clnt_disable (struct rpc_clnt *rpc)                  unref = rpc_clnt_remove_ping_timer_locked (rpc);                  trans = conn->trans; -                conn->trans = NULL;          }          pthread_mutex_unlock (&conn->lock);  | 
