Compare GUID case-insensitive; Npcap returns it capitalized

This commit is contained in:
dmiller 2016-11-28 15:11:51 +00:00
parent 581d3e98ce
commit 69d44d9738
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,9 @@
# Nmap Changelog ($Id$); -*-text-*-
o Fix reverse DNS on Windows which was failing with the message "mass_dns:
warning: Unable to determine any DNS servers." This was because the interface
GUID comparison needed to be done case-insensitive. [Robert Croteau]
o [Ncat] Restore the connection success message that Ncat prints with -v. This
was accidentally suppressed when not using -z.

View file

@ -926,7 +926,7 @@ static bool interface_is_known_by_guid(const char *guid) {
pcap_guid = strchr(pcap_name, '{');
if (pcap_guid == NULL)
continue;
if (strcmp(guid, pcap_guid) == 0)
if (strcasecmp(guid, pcap_guid) == 0)
return true;
}