mirror of
https://github.com/nmap/nmap.git
synced 2026-08-03 22:29:06 +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:
parent
33f3645ecd
commit
03c7e9d00e
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue