Skip to content

Commit

Permalink
Merge pull request #293 from ryanohoro/fix_cached_files
Browse files Browse the repository at this point in the history
Clear files from cached scanners in distribute()
  • Loading branch information
phutelmyer authored Jan 23, 2023
2 parents 8ca46ea + ebdf9e5 commit e46cb8c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/python/strelka/strelka.py
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,10 @@ def distribute(self, root_id: str, file: File, expire_at: int) -> None:
self.scanner_cache[und_name] = attr
options = scanner.get('options', {})
plugin = self.scanner_cache[und_name]

# Clear cached scanner of files
plugin.files = []

(f, s) = plugin.scan_wrapper(
data,
file,
Expand Down

0 comments on commit e46cb8c

Please sign in to comment.