diff --git a/libntfs-3g/index.c b/libntfs-3g/index.c index 76879521..1587bf86 100644 --- a/libntfs-3g/index.c +++ b/libntfs-3g/index.c @@ -690,7 +690,7 @@ int ntfs_index_lookup(const void *key, const int key_len, errno = EINVAL; ntfs_log_perror("Index block size (%d) is smaller than the " "sector size (%d)", icx->block_size, NTFS_BLOCK_SIZE); - return -1; + return err_out; } if (ni->vol->cluster_size <= icx->block_size)