diff --git a/cuckoo/data/analyzer/darwin/analyzer.py b/cuckoo/data/analyzer/darwin/analyzer.py index 80fc6c1562..ef5ac20b7e 100644 --- a/cuckoo/data/analyzer/darwin/analyzer.py +++ b/cuckoo/data/analyzer/darwin/analyzer.py @@ -142,7 +142,7 @@ def _upload_file(self, filepath): # Check whether we've already dumped this file - in that case skip it try: hashsum = hash_file(hashlib.sha256, filepath) - if sha256 in self.uploaded_hashes: + if hashsum in self.uploaded_hashes: return except IOError as e: self.log.info("Error dumping file from path \"%s\": %s", filepath, e)