mirror of
https://github.com/nmap/nmap.git
synced 2025-12-22 07:29:01 +00:00
Use keeppattern=true when using match.numbytes. Fixes #1855
This commit is contained in:
@@ -152,13 +152,13 @@ Helper = {
|
||||
return false, data
|
||||
end
|
||||
|
||||
status, data = self.socket:receive_buf(match.numbytes(4), false)
|
||||
status, data = self.socket:receive_buf(match.numbytes(4), true)
|
||||
if ( not(status) ) then
|
||||
return false, data
|
||||
end
|
||||
|
||||
local len = string.unpack("<I2", data)
|
||||
status, data = self.socket:receive_buf(match.numbytes(len), false)
|
||||
status, data = self.socket:receive_buf(match.numbytes(len), true)
|
||||
if ( not(status) ) then
|
||||
return false, data
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user