1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 17:59:04 +00:00

Proper method call with ":" instead of "."

This fixes broadcast-listener.nse failure:
/home/henri/nmap/nselib/packet.lua:521: attempt to index local 'self' (a number value)
This commit is contained in:
henri
2011-11-18 15:42:09 +00:00
parent 9b2d03d633
commit 77465c37df

View File

@@ -630,10 +630,10 @@ end
-- @param force_continue Ignored.
-- @return Whether the parsing succeeded.
function Packet:ipv6_ext_header_parse(force_continue)
local ext_hdr_len = self.u8(self.ip6_data_offset + 1)
local ext_hdr_len = self:u8(self.ip6_data_offset + 1)
ext_hdr_len = ext_hdr_len*8 + 8
self.ip6_data_offset = self.ip6_data_offset + ext_hdr_len
self.ip6_nhdr = self.u8(self.ip6_data_offset)
self.ip6_nhdr = self:u8(self.ip6_data_offset)
end
--- Set the header length field.
function Packet:ip_set_hl(len)