1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

Fixed KeyError: 'osmatches', reported separately by Thomas Neumayer and Jan Reister.

This commit is contained in:
jah
2012-05-22 18:14:48 +00:00
parent 84c3de36fc
commit b47d946195

View File

@@ -152,7 +152,7 @@ class HostSearch(object):
for osmatch in osmatches:
os_str += osmatch['name'].lower()
for osclass in osmatch['osmatches']:
for osclass in osmatch['osclasses']:
os_str += osclass['vendor'].lower() + " " +\
osclass['osfamily'].lower() + " " +\
osclass['type'].lower()