diff --git a/libntfs-3g/mft.c b/libntfs-3g/mft.c index 32a5e11c..b73e9b21 100644 --- a/libntfs-3g/mft.c +++ b/libntfs-3g/mft.c @@ -288,10 +288,9 @@ int ntfs_file_record_read(const ntfs_volume *vol, const MFT_REF mref, if (!m) return -1; } - if (ntfs_mft_record_read(vol, mref, m)) { - ntfs_log_perror("ntfs_mft_record_read failed"); + if (ntfs_mft_record_read(vol, mref, m)) goto err_out; - } + if (ntfs_mft_record_check(vol, mref, m)) goto err_out; @@ -1402,7 +1401,6 @@ found_free_rec: goto undo_mftbmp_alloc; if (ntfs_mft_record_read(vol, bit, m)) { - ntfs_log_perror("Error reading mft %lld #2", (long long)bit); free(m); goto undo_mftbmp_alloc; } @@ -1705,7 +1703,6 @@ found_free_rec: goto undo_mftbmp_alloc; if (ntfs_mft_record_read(vol, bit, m)) { - ntfs_log_perror("Error reading mft %lld", (long long)bit); free(m); goto undo_mftbmp_alloc; }