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

Added missing second parameter for receive_buf which caused errors with new

Lua version.
This commit is contained in:
patrik
2012-05-27 19:20:34 +00:00
parent cc1ba1ff3d
commit 656f03676e
11 changed files with 24 additions and 24 deletions

View File

@@ -39,7 +39,7 @@ Helper = {
if ( not(status) ) then
return false, err
end
local status, data = self.socket:receive_buf("\n")
local status, data = self.socket:receive_buf("\n", false)
if( not(status) ) then
return false, err
end
@@ -119,7 +119,7 @@ Helper = {
local modules = {}
while(true) do
status, data = self.socket:receive_buf("\n")
status, data = self.socket:receive_buf("\n", false)
if (not(status)) then
return false, data
end
@@ -152,13 +152,13 @@ Helper = {
return false, data
end
status, data = self.socket:receive_buf(match.numbytes(4))
status, data = self.socket:receive_buf(match.numbytes(4), false)
if ( not(status) ) then
return false, data
end
local pos, len = bin.unpack("<S", data)
status, data = self.socket:receive_buf(match.numbytes(len))
status, data = self.socket:receive_buf(match.numbytes(len), false)
if ( not(status) ) then
return false, data
end