Skip to content

Commit

Permalink
Change: Show message about running Notus only if pre-conditions are m…
Browse files Browse the repository at this point in the history
…et. (#1470)
  • Loading branch information
jjnicola authored Aug 17, 2023
1 parent 755f7e9 commit 120c4e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/attack.c
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,8 @@ run_table_driven_lsc (const char *scan_id, kb_t kb, const char *ip_str,
// Run table driven lsc
if (json_str == NULL)
return -1;

g_message ("Running Notus for %s", ip_str);
err = mqtt_publish ("scanner/package/cmd/notus", json_str);
if (err)
{
Expand Down Expand Up @@ -751,7 +753,6 @@ attack_host (struct scan_globals *globals, struct in6_addr *ip,
if (!scan_is_stopped () && prefs_get_bool ("table_driven_lsc")
&& prefs_get_bool ("mqtt_enabled"))
{
g_message ("Running LSC via Notus for %s", ip_str);
if (run_table_driven_lsc (globals->scan_id, args->host_kb, ip_str, NULL))
{
char buffer[2048];
Expand Down

0 comments on commit 120c4e6

Please sign in to comment.