Skip to content

Commit

Permalink
explicit condition
Browse files Browse the repository at this point in the history
  • Loading branch information
ohachimOs committed Sep 5, 2024
1 parent dad7469 commit 17ed028
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion agent/nmap_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def _emit_network_scan_finding(
domains = host.get("hostnames", {})
ports = host.get("ports", {}).get("port", "")
address = host.get("address", {})
if domains is not None and len(domains.values()):
if domains is not None and len(domains.values()) > 0:
domains = domains.get("hostname", {})
if isinstance(domains, List):
for domain_dict in domains:
Expand Down

0 comments on commit 17ed028

Please sign in to comment.