From 03cbee6850839a384b78c43bf7138dae57ccc184 Mon Sep 17 00:00:00 2001 From: kris Date: Sun, 4 Nov 2007 19:33:58 +0000 Subject: [PATCH] Fixing an assertion failure caused when running an ARP Ping scan. A Global Ping was attempted, but ARP wasn't checked for in sendPingProbe() --- scan_engine.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scan_engine.cc b/scan_engine.cc index a8dd83ade..09dba85f5 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -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 {