mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Clarify an ambiguous if/else.
This commit is contained in:
parent
75cd409ba5
commit
9a64d66a1e
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue