Return immediately after indexing unallocated space, otherwise it gets processed twice.

This commit is contained in:
Eamonn Saunders 2015-05-18 10:51:52 -04:00
parent 23368a50af
commit e38474ab1a

View File

@ -454,6 +454,7 @@ public final class KeywordSearchIngestModule implements FileIngestModule {
// unallocated and unused blocks can only have strings extracted from them. // unallocated and unused blocks can only have strings extracted from them.
if ((aType.equals(TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS) || aType.equals(TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS))) { if ((aType.equals(TskData.TSK_DB_FILES_TYPE_ENUM.UNALLOC_BLOCKS) || aType.equals(TskData.TSK_DB_FILES_TYPE_ENUM.UNUSED_BLOCKS))) {
extractStringsAndIndex(aFile); extractStringsAndIndex(aFile);
return;
} }
final long size = aFile.getSize(); final long size = aFile.getSize();