Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Bug fix #475.

smicallef0bf09a91726a
diff --git a/sflib.py b/sflib.py
index a15ea8f6..c950adc1 100644
--- a/sflib.py
+++ b/sflib.py
@@ -1017,8 +1017,9 @@ class SpiderFoot:
if validateReverse:
for host in names:
chk = self.resolveHost(host)
- if ipaddr in chk:
- ret.append(host)
+ if chk:
+ if ipaddr in chk:
+ ret.append(host)
else:
ret.extend(names)
if len(ret) > 0: