Skip to content

Commit

Permalink
Log message if the value set is invalid
Browse files Browse the repository at this point in the history
  • Loading branch information
jjnicola committed Apr 22, 2021
1 parent 2bb1df2 commit 312e936
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions boreas/alivedetection.c
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,10 @@ alive_detection_init (gvm_hosts_t *hosts, alive_test_t alive_test)
pref_value = atoi (pref_str);
if (pref_value > 0)
max_scan_hosts = pref_value;
else
g_debug ("%s: Invalid max_scan_hosts value. It must be an interger "
"greater than zero.",
__func__);
}

init_scan_restrictions (&scanner, max_scan_hosts);
Expand Down

0 comments on commit 312e936

Please sign in to comment.