Fixed errors found by nse_check_globals.

This commit is contained in:
perdo 2012-06-06 22:23:02 +00:00
parent 14dc780226
commit 5ac6c7d64a
109 changed files with 196 additions and 128 deletions

View file

@ -51,7 +51,7 @@ function process_pa_response(response)
end
-- the list of published applications starts at offset 40
offset = 41
local offset = 41
while offset < packet_len do
pos, app_name = bin.unpack("z", response:sub(offset))
@ -119,7 +119,7 @@ action = function(host, port)
local socket = nmap.new_socket()
socket:set_timeout(5000)
try = nmap.new_try(function() socket:close() end)
local try = nmap.new_try(function() socket:close() end)
try( socket:connect(host, port) )