mirror of
https://github.com/nmap/nmap.git
synced 2025-12-06 04:31:29 +00:00
Fixed error in dns.lua reported by Eugene Alexeev:
nselib/dns.lua:110: attempt to get length of field 'dtype' (a number value)
This commit is contained in:
@@ -107,7 +107,7 @@ local function getAuthDns(rPkt)
|
||||
if #rPkt.answers == 0 then
|
||||
return false
|
||||
else
|
||||
if #rPkt.answers[1].dtype == types.CNAME then
|
||||
if rPkt.answers[1].dtype == types.CNAME then
|
||||
return {cname = rPkt.answers[1].domain}
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user