1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-01 12:29:03 +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:
david
2013-05-17 07:56:51 +00:00
parent ba4097af38
commit 5ab1b23bf0
2 changed files with 3 additions and 1 deletions

View File

@@ -1,5 +1,7 @@
# Nmap Changelog ($Id$); -*-text-*-
o Fixed address matching for SCTP (-PY) ping. [Marin Maržić]
o Removed some non-ANSI-C strftime format strings ("%F") and
locale-dependent formats ("%c") from NSE scripts and libraries.
C99-specified %F was noticed by Alex Weber. [Daniel Miller]

View File

@@ -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