Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lib/cuckoo/core/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -1610,7 +1610,7 @@ def demux_sample_and_add_to_db(
extracted_files, demux_error_msgs = demux_sample(file_path, package, options, platform=platform)
# check if len is 1 and the same file, if diff register file, and set parent
if extracted_files and not any(file_path == path for path, _ in extracted_files):
_ = self.register_sample(File(file_path), source_url=source_url)
parent_sample = self.register_sample(File(file_path), source_url=source_url)
if conf.cuckoo.delete_archive:
path_delete(file_path.decode())

Expand Down
Loading