mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Fixed KeyError: 'osmatches', reported separately by Thomas Neumayer and Jan Reister.
This commit is contained in:
parent
84c3de36fc
commit
b47d946195
1 changed files with 1 additions and 1 deletions
|
|
@ -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()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue