mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +00:00
Fix a string format error in the HTTP dechunking code.
This commit is contained in:
parent
8a895ff0d9
commit
d390452e36
1 changed files with 3 additions and 1 deletions
|
|
@ -344,7 +344,9 @@ local function recv_chunked(s, partial)
|
|||
chunks[#chunks + 1] = chunk
|
||||
|
||||
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)
|
||||
end
|
||||
until chunk_size == 0
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue