1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-24 00:19:01 +00:00

Don't quit if no MAC can be found, just mark the target as down. Unusual case, see #1293

This commit is contained in:
dmiller
2018-08-05 20:22:43 +00:00
parent 087b445f17
commit 16193bc5e8

View File

@@ -620,8 +620,9 @@ static void refresh_hostbatch(HostGroupState *hs, const addrset *exclude_group,
if (!(hs->hostbatch[i]->flags & HOST_DOWN) &&
!hs->hostbatch[i]->timedOut(&now)) {
if (!setTargetNextHopMAC(hs->hostbatch[i])) {
fatal("%s: Failed to determine dst MAC address for target %s",
error("%s: Failed to determine dst MAC address for target %s",
__func__, hs->hostbatch[i]->NameIP());
hs->hostbatch[i]->flags = HOST_DOWN;
}
}
}