diff --git a/lib/cuckoo/core/database.py b/lib/cuckoo/core/database.py index f0f69844b1c..4498db25a10 100644 --- a/lib/cuckoo/core/database.py +++ b/lib/cuckoo/core/database.py @@ -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())