Skip to content

Commit

Permalink
Fix: enable notus only if mqtt is enabled (#1095)
Browse files Browse the repository at this point in the history
  • Loading branch information
Kraemii committed Apr 29, 2022
1 parent 618e95c commit 329d58b
Show file tree
Hide file tree
Showing 2 changed files with 3 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 @@ -734,7 +734,8 @@ attack_host (struct scan_globals *globals, struct in6_addr *ip, GSList *vhosts,
pluginlaunch_wait_for_free_process (main_kb, kb);
}

if (!scan_is_stopped () && prefs_get_bool ("table_driven_lsc"))
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, kb, ip_str, NULL))
Expand Down
1 change: 1 addition & 0 deletions src/openvas.c
Original file line number Diff line number Diff line change
Expand Up @@ -445,6 +445,7 @@ attack_network_init (struct scan_globals *globals, const gchar *config_file)
else
{
g_message ("%s: INIT MQTT: SUCCESS", __func__);
prefs_set ("mqtt_enabled", "yes");
}
}

Expand Down

0 comments on commit 329d58b

Please sign in to comment.