diff --git a/scripts/ip-geolocation-ipinfodb.nse b/scripts/ip-geolocation-ipinfodb.nse index 363090f22..04620bf05 100644 --- a/scripts/ip-geolocation-ipinfodb.nse +++ b/scripts/ip-geolocation-ipinfodb.nse @@ -76,7 +76,7 @@ end action = function(host,port) local output = ipinfodb(host.ip) - if(#output~=0) then + if(output and #output~=0) then output.name = host.ip if host.targetname then output.name = output.name.." ("..host.targetname..")"