1
0
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:
dmiller
2019-12-13 18:11:52 +00:00
parent ff61845ce2
commit a5a945347b
2 changed files with 3 additions and 3 deletions

View File

@@ -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