1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-24 15:19:03 +00:00

Fixing an assertion failure caused when running an ARP Ping scan. A Global Ping was attempted, but ARP wasn't checked for in sendPingProbe()

This commit is contained in:
kris
2007-11-04 19:33:58 +00:00
parent 79bdfec9b5
commit 03cbee6850

View File

@@ -2862,6 +2862,8 @@ static void sendPingProbe(UltraScanInfo *USI, HostScanStats *hss) {
} else if (hss->pingprobe.type == PS_TCP || hss->pingprobe.type == PS_UDP
|| hss->pingprobe.type == PS_PROTO || hss->pingprobe.type == PS_ICMP) {
sendIPScanProbe(USI, hss, &hss->pingprobe, 0, hss->nextPingSeq(true));
} else if (hss->pingprobe.type == PS_ARP) {
sendArpScanProbe(USI, hss, 0, hss->nextPingSeq(true));
} else if (USI->scantype == RPC_SCAN) {
assert(0); /* TODO: fill out */
} else {