Skip to content

Commit

Permalink
Merge pull request #891 from greenbone/mergify/bp/master/pr-884
Browse files Browse the repository at this point in the history
Fix potential segfault (backport #884)
  • Loading branch information
ArnoStiefvater authored Oct 11, 2021
2 parents 0b879ef + 74ae488 commit fd84d57
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 @@ -58,6 +58,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
- Use fchmod to change file permission instead of on open to prevent race conditions [854](https://github.com/greenbone/openvas-scanner/pull/854)
- Fix plugins upload [#878](https://github.com/greenbone/openvas/pull/878)
- Fix Error Message when NVTI chache init failed [#885](https://github.com/greenbone/openvas/pull/885)
- Fix potential segfault.[#884](https://github.com/greenbone/openvas/pull/884)

[21.4.3]: https://github.com/greenbone/openvas-scanner/compare/v21.4.2...openvas-21.04

Expand Down
2 changes: 1 addition & 1 deletion src/attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1354,7 +1354,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 fd84d57

Please sign in to comment.