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;
}