From 228f0bec776c1ad24b145802c5d4859a323f26e8 Mon Sep 17 00:00:00 2001 From: dmiller Date: Tue, 17 Dec 2013 14:10:49 +0000 Subject: [PATCH] Fix ICMPv6 assertion failure: http://seclists.org/nmap-dev/2013/q4/290 --- scan_engine.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scan_engine.cc b/scan_engine.cc index 4517e1e90..9f060511c 100644 --- a/scan_engine.cc +++ b/scan_engine.cc @@ -964,7 +964,7 @@ void UltraProbe::setIP(u8 *ippacket, u32 len, const probespec *pspec) { } u16 UltraProbe::icmpid() const { - assert(mypspec.proto == IPPROTO_ICMP); + assert(mypspec.proto == IPPROTO_ICMP || mypspec.proto == IPPROTO_ICMPV6); return probes.IP.pd.icmp.ident; }