mirror of
https://github.com/nmap/nmap.git
synced 2025-12-14 03:39:02 +00:00
o [NSE] Fixed bug in match.numbytes that would return one byte less than what
was requested. Updated redis library to take the fix into account. [Patrik]
This commit is contained in:
@@ -45,7 +45,7 @@ end
|
||||
-- @usage sock:receive_buf(match.numbytes(80))
|
||||
-- @see nmap.receive_buf
|
||||
numbytes = function(num)
|
||||
local n = num
|
||||
local n = num + 1
|
||||
return function(buf)
|
||||
if(#buf >=n) then
|
||||
return n, n
|
||||
|
||||
Reference in New Issue
Block a user