Skip to content

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

sflib: Ensure normalizeDNS returns a list

Brendan Colese4542e22fcd6
diff --git a/sflib.py b/sflib.py
index ffa24e34..a517fe68 100644
--- a/sflib.py
+++ b/sflib.py
@@ -1169,6 +1169,10 @@ class SpiderFoot:
"""
ret = list()
+
+ if not res:
+ return ret
+
for addr in res:
if type(addr) == list:
for host in addr: