mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
Fixing r7470 (patch for ICMP ping + IPv6)--it stopped every IPv6 scan
This commit is contained in:
parent
abe470fba8
commit
d2a8535ebc
1 changed files with 1 additions and 1 deletions
|
|
@ -376,7 +376,7 @@ void NmapOps::ValidateOptions() {
|
|||
fatal("Ping scan is not valid with any other scan types (the other ones all include a ping scan");
|
||||
}
|
||||
|
||||
if (af() == AF_INET6 && (PINGTYPE_ICMP_PING || PINGTYPE_ICMP_MASK || PINGTYPE_ICMP_TS)) {
|
||||
if (af() == AF_INET6 && (pingtype & (PINGTYPE_ICMP_PING|PINGTYPE_ICMP_MASK|PINGTYPE_ICMP_TS))) {
|
||||
fatal("ICMP Echo, Timestamp and Address Mask pings are only valid for IPv4.");
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue