Skip to content

Commit

Permalink
Check alive_hosts_list before freeing
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStiefvater committed Sep 27, 2021
1 parent e0012eb commit da923e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -1455,7 +1455,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 da923e4

Please sign in to comment.