1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-28 18:39:03 +00:00

Fixed a bug that would prevent the rpcinfo script from returning any results

if the rpc program could not be matched to a name.
This commit is contained in:
patrik
2010-06-01 14:09:58 +00:00
parent 91c95d81b2
commit e411e35fc6

View File

@@ -36,7 +36,7 @@ action = function(host, port)
for progid, v in pairs(rpcinfo) do
for proto, v2 in pairs(v) do
table.insert( result, ("%-7d %-10s %5d/%s %s"):format(progid, stdnse.strjoin(",", v2.version), v2.port, proto, rpc.Util.ProgNumberToName(progid) ) )
table.insert( result, ("%-7d %-10s %5d/%s %s"):format(progid, stdnse.strjoin(",", v2.version), v2.port, proto, rpc.Util.ProgNumberToName(progid) or "") )
end
end