diff --git a/scripts/targets-asn.nse b/scripts/targets-asn.nse index 643b2bb42..7970ab71e 100644 --- a/scripts/targets-asn.nse +++ b/scripts/targets-asn.nse @@ -84,10 +84,12 @@ action = function(host, port) break else for i, prefix in ipairs(stdnse.strsplit("\n",data)) do - table.insert(prefixes,prefix) - if target.ALLOW_NEW_TARGETS then - stdnse.print_debug("Added targets: "..prefix) - local status,err = target.add(prefix) + if ( #prefix > 1 ) then + table.insert(prefixes,prefix) + if target.ALLOW_NEW_TARGETS then + stdnse.print_debug("Added targets: "..prefix) + local status,err = target.add(prefix) + end end end end