mirror of
https://github.com/nmap/nmap.git
synced 2025-12-26 01:19:03 +00:00
Patch to libraries that were inappropriately using globals.
Often two (or more) scripts using the same library would overwrite the globals each was using. This would result in (at best) an error or (at worst) a deadlock. The patch changes the global accesses to local.
This commit is contained in:
@@ -289,12 +289,12 @@ function do_nbstat(host)
|
||||
|
||||
socket:set_timeout(1000)
|
||||
|
||||
status, result = socket:receive_bytes(1)
|
||||
local status, result = socket:receive_bytes(1)
|
||||
if(status == false) then
|
||||
return false, result
|
||||
end
|
||||
|
||||
close_status, err = socket:close()
|
||||
local close_status, err = socket:close()
|
||||
if(close_status == false) then
|
||||
return false, err
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user