diff --git a/CHANGELOG.md b/CHANGELOG.md index 0488807e2..5533a5bee 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -73,6 +73,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). ### Deprecated ### Removed ### Fixed +- Fix info msg when 0 alive hosts are left to scan and max_scan_hosts limit is reached. No message will be generated for that case anymore. [#561](https://github.com/greenbone/gvm-libs/pull/561) [Unreleased]: https://github.com/greenbone/gvm-libs/compare/v20.8.2...gvm-libs-20.08 diff --git a/boreas/boreas_io.c b/boreas/boreas_io.c index b3777e7e1..c7f88de52 100644 --- a/boreas/boreas_io.c +++ b/boreas/boreas_io.c @@ -185,7 +185,10 @@ get_host_from_queue (kb_t alive_hosts_kb, gboolean *alive_deteciton_finished) num_not_scanned_hosts = get_alive_hosts_count () - get_max_scan_hosts (); - send_limit_msg (num_not_scanned_hosts); + if (0 != num_not_scanned_hosts) + { + send_limit_msg (num_not_scanned_hosts); + } } g_debug ("%s: Boreas already finished scanning and we reached the " "end of the Queue of alive hosts.",