1
0
mirror of https://github.com/nmap/nmap.git synced 2026-02-02 11:39:03 +00:00

fixed a little bug

This commit is contained in:
fyodor
2005-07-19 08:50:58 +00:00
parent 555c986ac3
commit 30863f2f15

View File

@@ -294,7 +294,7 @@ void returnhost(HostGroupState *hs) {
Target *nexthost(HostGroupState *hs, TargetGroup *exclude_group,
struct scan_lists *ports, int *pingtype) {
int hidx;
int hidx = 0;
int i;
struct sockaddr_storage ss;
size_t sslen;
@@ -415,8 +415,9 @@ if (hs->randomize) {
if ((o.sendpref & PACKET_SEND_ETH) &&
hs->hostbatch[0]->ifType() == devt_ethernet) {
if (!setTargetNextHopMAC(hs->hostbatch[hidx]))
fatal("%s: Failed to determine dst MAC address for target %s",
for(i=0; i < hs->current_batch_sz; i++)
if (!setTargetNextHopMAC(hs->hostbatch[i]))
fatal("%s: Failed to determine dst MAC address for target %s",
__FUNCTION__, hs->hostbatch[hidx]->NameIP());
}