1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-09 06:56:35 +00:00

Clarify an ambiguous if/else.

This commit is contained in:
david
2011-07-19 21:40:32 +00:00
parent 75cd409ba5
commit 9a64d66a1e

View File

@@ -135,11 +135,12 @@ static void arpping(Target *hostbatch[], int num_hosts) {
}
targets.push_back(hostbatch[targetno]);
}
if (!targets.empty())
if (!targets.empty()) {
if (targets[0]->af() == AF_INET)
ultra_scan(targets, NULL, PING_SCAN_ARP);
else
ultra_scan(targets, NULL, PING_SCAN_ND);
}
return;
}