aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
Diffstat (limited to 'lib')
-rw-r--r--lib/fuse.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/fuse.c b/lib/fuse.c
index 671fbcc..6c998c3 100644
--- a/lib/fuse.c
+++ b/lib/fuse.c
@@ -317,8 +317,8 @@ static void destroy_node(struct fuse *f, fino_t ino, int version)
struct node *node;
pthread_mutex_lock(&f->lock);
- node = get_node(f, ino);
- if (node->version == version && ino != FUSE_ROOT_INO) {
+ node = __get_node(f, ino);
+ if (node && node->version == version && ino != FUSE_ROOT_INO) {
unhash_name(f, node);
unhash_ino(f, node);
free_node(node);