From 442b82e2607be142e501005c5cdd8d945aabbb72 Mon Sep 17 00:00:00 2001 From: paulino Date: Sun, 21 Aug 2016 23:16:40 +0000 Subject: [PATCH] Adds nil check --- scripts/ip-geolocation-ipinfodb.nse | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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..")"