mirror of
https://github.com/nmap/nmap.git
synced 2025-12-17 21:19:01 +00:00
Fix a string format error in the HTTP dechunking code.
This commit is contained in:
@@ -344,7 +344,9 @@ local function recv_chunked(s, partial)
|
|||||||
chunks[#chunks + 1] = chunk
|
chunks[#chunks + 1] = chunk
|
||||||
|
|
||||||
line, partial = recv_line(s, partial)
|
line, partial = recv_line(s, partial)
|
||||||
if not line or not string.match(line, "^\r?\n") then
|
if not line then
|
||||||
|
return nil, string.format("Didn't find CRLF after chunk-data.")
|
||||||
|
elseif not string.match(line, "^\r?\n") then
|
||||||
return nil, string.format("Didn't find CRLF after chunk-data; got %q.", line)
|
return nil, string.format("Didn't find CRLF after chunk-data; got %q.", line)
|
||||||
end
|
end
|
||||||
until chunk_size == 0
|
until chunk_size == 0
|
||||||
|
|||||||
Reference in New Issue
Block a user