Skip to content

Commit

Permalink
Merge pull request #892 from greenbone/mergify/bp/openvas-20.08/pr-884
Browse files Browse the repository at this point in the history
Fix potential segfault (backport #884)
  • Loading branch information
ArnoStiefvater committed Oct 11, 2021
2 parents d5377b4 + e65b06a commit 173c514
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 @@ -19,6 +19,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
### Fixed
- Backport #832. Fix interrupted scan, when the process table is full. [#835](https://github.com/greenbone/openvas-scanner/pull/835)
- Fix Segmentation fault when freeing hosts and alive hosts [#893](https://github.com/greenbone/openvas/pull/893)
- Backport #884. Fix potential segfault.[#892](https://github.com/greenbone/openvas/pull/892)

[20.8.4]: https://github.com/greenbone/openvas-scanner/compare/v20.8.3...openvas-20.08

Expand Down
2 changes: 1 addition & 1 deletion src/attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1365,7 +1365,7 @@ attack_network (struct scan_globals *globals)
gvm_hosts_count (hosts));

gvm_hosts_free (hosts);
if (test_alive_hosts_only)
if (alive_hosts_list)
gvm_hosts_free (alive_hosts_list);

set_scan_status ("finished");
Expand Down

0 comments on commit 173c514

Please sign in to comment.