mirror of
https://github.com/nmap/nmap.git
synced 2026-05-13 08:46:45 +00:00
Fixed errors found by nse_check_globals.
This commit is contained in:
parent
14dc780226
commit
5ac6c7d64a
109 changed files with 196 additions and 128 deletions
|
|
@ -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) )
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue