mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +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:
parent
98d4bee8e5
commit
9537366a74
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue