secureCodeBox / scanner-infrastructure-amass

Part of the deprecated secureCodeBox v1, see secureCodeBox/secureCodeBox Repo for v2
Apache License 2.0
7 stars 3 forks source link

Fix consecutive scans from timing out #20

Closed J12934 closed 4 years ago

J12934 commented 4 years ago

The current Implementation has a bug causes that all scans performed in an worker from completing other then the first scan. The second and later scans will all be stuck because the services.NewLocalSystem(config.NewConfig()) will get stuck when called more than once.

This bug was in introduced via the amass update in PR #19.

This PR ensures that the "LocalSystem" will only get initialized once.