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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user