1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 13:19:01 +00:00

Add a comment about suspect code

This commit is contained in:
nnposter
2019-11-17 03:23:53 +00:00
parent 67fe6bb0fb
commit 6785355374

View File

@@ -418,6 +418,9 @@ local function createQuery(collectionName, query)
packet:addInt32(0); -- options
packet:addString(collectionName);
packet:addInt32(0) -- number to skip
-- NB: Using value of -1 for "no limit" below is suspect. The protocol
-- interprets -1 as requesting only one document, not all documents.
-- https://docs.mongodb.com/manual/reference/mongodb-wire-protocol/#wire-op-query
packet:addInt32(-1) -- number to return : no limit
local status, error = packet:addBSON(query)