1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Adds nil check

This commit is contained in:
paulino
2016-08-21 23:16:40 +00:00
parent cb9a184732
commit 442b82e260

View File

@@ -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..")"