mirror of
https://github.com/nmap/nmap.git
synced 2025-12-15 12:19:02 +00:00
Code analysis thinks this could be null; assert it
This commit is contained in:
@@ -1167,6 +1167,7 @@ int UltraScanInfo::removeCompletedHosts() {
|
|||||||
nxt = hostI;
|
nxt = hostI;
|
||||||
nxt++;
|
nxt++;
|
||||||
hss = *hostI;
|
hss = *hostI;
|
||||||
|
assert(hss);
|
||||||
// Don't bother checking timedOut for discovery scans or if the target is already completed.
|
// Don't bother checking timedOut for discovery scans or if the target is already completed.
|
||||||
if (hss->completed() || (timedout = (!ping_scan) && hss->target->timedOut(&now)) != false) {
|
if (hss->completed() || (timedout = (!ping_scan) && hss->target->timedOut(&now)) != false) {
|
||||||
/* A host to remove! First adjust nextI appropriately */
|
/* A host to remove! First adjust nextI appropriately */
|
||||||
|
|||||||
Reference in New Issue
Block a user