mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 09:29:01 +00:00
Fix address matching in -PY ping.
Patch by Marin Maržić. http://seclists.org/nmap-dev/2013/q2/297
This commit is contained in:
@@ -5317,7 +5317,7 @@ static int get_ping_pcap_result(UltraScanInfo *USI, struct timeval *stime) {
|
||||
/* Ensure the connection info matches. */
|
||||
if (probe->dport() != ntohs(sctp->sh_sport) ||
|
||||
probe->sport() != ntohs(sctp->sh_dport) ||
|
||||
sockaddr_storage_cmp(&target_src, &hdr.dst) == 0)
|
||||
sockaddr_storage_cmp(&target_src, &hdr.dst) != 0)
|
||||
continue;
|
||||
|
||||
/* Sometimes we get false results when scanning localhost with
|
||||
|
||||
Reference in New Issue
Block a user