mirror of
https://github.com/nmap/nmap.git
synced 2026-09-21 07:38:39 +00:00
parent
b4959d04f4
commit
6814bc4cdd
3 changed files with 4 additions and 2 deletions
|
|
@ -93,7 +93,7 @@ local knxParseSearchResponse = function(ips, results, knxMessage)
|
|||
end
|
||||
|
||||
local message_format = '>B c1 c4 I2 BBB c1 I2 c2 c6 c4 c6 c30 BB'
|
||||
if #knxMessage - pos + 1 < string.packlen(message_format) then
|
||||
if #knxMessage - pos + 1 < string.packsize(message_format) then
|
||||
stdnse.debug1("Message too short for KNX message")
|
||||
return
|
||||
end
|
||||
|
|
|
|||
|
|
@ -56,7 +56,7 @@ local knxParseDescriptionResponse = function(knxMessage)
|
|||
end
|
||||
|
||||
local message_format = '>BBB c1 I2 c2 c6 c4 c6 c30 BB'
|
||||
if #knxMessage - pos + 1 < string.packlen(message_format) then
|
||||
if #knxMessage - pos + 1 < string.packsize(message_format) then
|
||||
stdnse.debug1("Message too short for KNX message")
|
||||
return
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue