1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

Change the "name" member of a decoded NSEC record to be called

"next_dname" instead.
This commit is contained in:
david
2011-03-27 05:07:16 +00:00
parent 4f054a058e
commit 6d90b593b7
2 changed files with 6 additions and 6 deletions

View File

@@ -980,7 +980,7 @@ end
-- section 4.
--
-- <code>entry.NSEC</code> has the fields <code>dname</code>,
-- <code>name</code>, and <code>types</code>.
-- <code>next_dname</code>, and <code>types</code>.
-- @param entry RR in packet.
-- @param data Complete encoded DNS packet.
-- @param pos Position in packet after RR.
@@ -989,7 +989,7 @@ decoder[types.NSEC] = function (entry, data, pos)
local block_num, type_bitmap
entry.NSEC = {}
entry.NSEC.dname = entry.dname
np, entry.NSEC.name = decStr(data, np)
np, entry.NSEC.next_dname = decStr(data, np)
np, block_num, type_bitmap = bin.unpack(">Cp", data, np)
entry.NSEC.types = {}
for i in bit_iter(type_bitmap) do