From 9537366a74a1af85d91d91c02caed44ad1050763 Mon Sep 17 00:00:00 2001 From: batrick Date: Thu, 8 Apr 2010 20:40:20 +0000 Subject: [PATCH] Fixed global access error with fix proposed by Matrin Swende [1]. [1] http://seclists.org/nmap-dev/2010/q1/459 --- nselib/mongodb.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/mongodb.lua b/nselib/mongodb.lua index 90477f381..d3eaf5e2c 100644 --- a/nselib/mongodb.lua +++ b/nselib/mongodb.lua @@ -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