From 03c7e9d00ef1b2c88abf3c4593596c98ca9cc1fd Mon Sep 17 00:00:00 2001 From: batrick Date: Mon, 29 Nov 2010 22:51:51 +0000 Subject: [PATCH] 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 --- nselib/stdnse.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/stdnse.lua b/nselib/stdnse.lua index 796dcef52..1b05ced5b 100644 --- a/nselib/stdnse.lua +++ b/nselib/stdnse.lua @@ -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;