summaryrefslogtreecommitdiffstats
path: root/src/fat_dir.c
diff options
context:
space:
mode:
authorChristophe Grenier <grenier@cgsecurity.org>2007-12-05 00:12:33 +0100
committerChristophe Grenier <grenier@cgsecurity.org>2007-12-05 00:12:33 +0100
commit1bdf5e342ac5cc669e96bc22f63d134f8b8f0b51 (patch)
tree2db9953ac467239a46e87f13e4004c3e171e82d7 /src/fat_dir.c
parente51a1174a3bb4a68dab4d41019b91d092a84c498 (diff)
Fix some FAT & NTFS read/write
Diffstat (limited to 'src/fat_dir.c')
-rw-r--r--src/fat_dir.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/fat_dir.c b/src/fat_dir.c
index 380dc31..82c6d00 100644
--- a/src/fat_dir.c
+++ b/src/fat_dir.c
@@ -386,8 +386,7 @@ static file_data_t *fat1x_rootdir(disk_t *disk_car, const partition_t *partition
if(disk_car->read(disk_car, root_size, buffer_dir, start))
{
log_error("FAT 1x: Can't read root directory\n");
- free(buffer_dir);
- return NULL;
+ /* Don't return yet, it may have been a partial read */
}
res=dir_fat_aux(buffer_dir,root_size,fat_header->cluster_size);
free(buffer_dir);