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:
@@ -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)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user