1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 19:09:01 +00:00

Have stdnse.make_buffer read chunks instead of lines [1] so we do not implicitly

buffer based on the presence of new lines.

[1] http://seclists.org/nmap-dev/2010/q4/554
This commit is contained in:
batrick
2010-11-29 22:51:51 +00:00
parent 33f3645ecd
commit 03c7e9d00e

View File

@@ -135,7 +135,7 @@ function make_buffer(socket, sep)
if done then
return nil, msg; -- must be nil for stdnse.lines (below)
elseif not buffer then
local status, str = socket:receive_lines(1);
local status, str = socket:receive();
if not status then
if #left > 0 then
done, msg = not status, str;