mirror of
https://github.com/nmap/nmap.git
synced 2025-12-31 11:59:03 +00:00
Fixed global access error with fix proposed by Matrin Swende [1].
[1] http://seclists.org/nmap-dev/2010/q1/459
This commit is contained in:
@@ -76,7 +76,7 @@ local function _element_to_bson(key, value)
|
||||
local op = bin.pack('H','02')
|
||||
return true, op .. name .. length .. cstring
|
||||
elseif type(value) =='table' then
|
||||
return true, bin.pack('H','02') .. name .. _dict_to_bson(value)
|
||||
return true, bin.pack('H','02') .. name .. toBson(value)
|
||||
elseif type(value)== 'boolean' then
|
||||
return true, bin.pack('H','08') + name + bin.pack('H',value and '01' or '00')
|
||||
elseif type(value) == 'number' then
|
||||
|
||||
Reference in New Issue
Block a user