Skip to content

Commit

Permalink
Fix crash in nmap OS crash.
Browse files Browse the repository at this point in the history
  • Loading branch information
3asm committed Aug 21, 2024
1 parent bc28516 commit 9c7f865
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions agent/nmap_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -381,6 +381,13 @@ def _emit_fingerprints(
if isinstance(os_match, list):
if len(os_match) > 0:
os_match_highest = os_match[0]
if (
isinstance(os_match_highest, list)
and len(os_match_highest) > 0
):
os_match_highest = os_match_highest[0]
else:
continue
else:
continue
elif isinstance(os_match, dict):
Expand Down

0 comments on commit 9c7f865

Please sign in to comment.