From dd40116c7a7b7684a17c1dd69d4a6dcdbb2c40dc Mon Sep 17 00:00:00 2001 From: doomedraven Date: Thu, 25 Sep 2025 12:06:35 +0200 Subject: [PATCH] Update database.py --- lib/cuckoo/core/database.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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())