1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 06:01:28 +00:00

check_globals cleanup

This commit is contained in:
patrik
2012-10-07 12:39:21 +00:00
parent 2e985da611
commit 40b1c4705b
3 changed files with 12 additions and 12 deletions

View File

@@ -167,7 +167,7 @@ Comm = {
if nmap.is_privileged() then
-- Try to bind to a reserved port
for i = 1, 10, 1 do
resvport = math.random(1, 1024)
local resvport = math.random(1, 1024)
socket = nmap.new_socket()
status, err = socket:bind(nil, resvport)
if status then
@@ -184,7 +184,7 @@ Comm = {
if nmap.is_privileged() then
-- Try to bind to a reserved port
for i = 1, 10, 1 do
resvport = math.random(1, 1024)
local resvport = math.random(1, 1024)
socket = nmap.new_socket("udp")
status, err = socket:bind(nil, resvport)
if status then break end