Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix: Stop and clean finished/running openvas process before resumming…
… a scan If Ospd-Openvas crashes during a scan, probably the scan will continue running in background, leaving the kb in redis occupied. After ospd-openvas is initialized, the task can be resumed. In this case, the scan id of the task will be the same one as before, and there will be two kbs for the old and the new tasks with the same scanid. This patch ensure that there is no kb in redis in used with the same scan id, and also it will stop the scan in case it is still running. This first commit add a function to check for kbs with the given scan id.
- Loading branch information