Skip to content

Commit

Permalink
Merge pull request #332 from jjnicola/stop-scan
Browse files Browse the repository at this point in the history
Check if the scan was stopped before launching OpenVAS.
  • Loading branch information
jjnicola authored Sep 3, 2020
2 parents 63e4db4 + 5509315 commit 90746aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).

### Fixed
- Fix nvticache name when for stable version from sources. [#317](https://github.com/greenbone/ospd-openvas/pull/317)
- Fix stop scan during preferences handling, before spawining OpenVAS. [#332](https://github.com/greenbone/ospd-openvas/pull/332)

[20.8.1]: https://github.com/greenbone/ospd-openvas/compare/v20.8.0...ospd-openvas-20.08

Expand Down
2 changes: 1 addition & 1 deletion ospd_openvas/daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -1254,7 +1254,7 @@ def exec_scan(self, scan_id: str):
# Release memory used for scan preferences.
del scan_prefs

if do_not_launch:
if do_not_launch or kbdb.scan_is_stopped(openvas_scan_id):
self.main_db.release_database(kbdb)
return

Expand Down

0 comments on commit 90746aa

Please sign in to comment.