1
0
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:
batrick
2010-04-08 20:40:20 +00:00
parent 98d4bee8e5
commit 9537366a74

View File

@@ -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