From ca0324fc2f86953dd08c3e1d8ba2d34d0aeabc6f Mon Sep 17 00:00:00 2001 From: dmiller Date: Sun, 13 Jul 2025 04:39:09 +0000 Subject: [PATCH] Initialize ServiceGroup::busy member --- service_scan.cc | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service_scan.cc b/service_scan.cc index c4d6d11a6..2839833d5 100644 --- a/service_scan.cc +++ b/service_scan.cc @@ -2009,6 +2009,7 @@ ServiceGroup::ServiceGroup(std::vector &Targets, AllProbes *AP) { min_par = o.min_parallelism; max_par = MAX(min_par, o.max_parallelism ? o.max_parallelism : 100); ideal_parallelism = box(min_par, max_par, desired_par); + busy = false; } ServiceGroup::~ServiceGroup() { @@ -2071,10 +2072,10 @@ static void adjustPortStateIfNecessary(ServiceNFO *svc) { probestring = probe->getProbeString(&probestringlen); assert(probestringlen > 0); // Now we write the string to the IOD - SG->busy = 1; + SG->busy = true; nsock_write(nsp, nsi, servicescan_write_handler, svc->probe_timemsleft(probe), svc, (const char *) probestring, probestringlen); - SG->busy = 0; + SG->busy = false; return 0; }