mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 06:01:28 +00:00
Fix the off-by-one in ssl-enum-ciphers that I reintroduced.
This commit is contained in:
@@ -832,7 +832,7 @@ local function in_chunks(t, size)
|
|||||||
local ret = {}
|
local ret = {}
|
||||||
for i = 1, #t, size do
|
for i = 1, #t, size do
|
||||||
local chunk = {}
|
local chunk = {}
|
||||||
for j = i, i + size do
|
for j = i, i + size - 1 do
|
||||||
chunk[#chunk+1] = t[j]
|
chunk[#chunk+1] = t[j]
|
||||||
end
|
end
|
||||||
ret[#ret+1] = chunk
|
ret[#ret+1] = chunk
|
||||||
|
|||||||
Reference in New Issue
Block a user