mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user