mirror of
https://github.com/nmap/nmap.git
synced 2025-12-12 18:59:03 +00:00
Fixed KeyError: 'osmatches', reported separately by Thomas Neumayer and Jan Reister.
This commit is contained in:
@@ -152,7 +152,7 @@ class HostSearch(object):
|
|||||||
|
|
||||||
for osmatch in osmatches:
|
for osmatch in osmatches:
|
||||||
os_str += osmatch['name'].lower()
|
os_str += osmatch['name'].lower()
|
||||||
for osclass in osmatch['osmatches']:
|
for osclass in osmatch['osclasses']:
|
||||||
os_str += osclass['vendor'].lower() + " " +\
|
os_str += osclass['vendor'].lower() + " " +\
|
||||||
osclass['osfamily'].lower() + " " +\
|
osclass['osfamily'].lower() + " " +\
|
||||||
osclass['type'].lower()
|
osclass['type'].lower()
|
||||||
|
|||||||
Reference in New Issue
Block a user