* hostmux/mux.c: Use netfs_nref to increase hard references of the node.
---
hostmux/mux.c | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/hostmux/mux.c b/hostmux/mux.c
index 81d3961..ddca89d 100644
--- a/hostmux/mux.c
+++ b/hostmux/mux.c
@@ -240,10 +240,8 @@ lookup_cached (struct hostmux *mux, const char *host, int
purge,
if (strcasecmp (host, nm->name) == 0)
{
- pthread_spin_lock (&netfs_node_refcnt_lock);
- if (nm->node)
- nm->node->references++;
- pthread_spin_unlock (&netfs_node_refcnt_lock);
+ if (nm->node)
+ netfs_nref (nm->node);
if (nm->node)
{
--
2.6.4