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

Add a patch to dns.lua from Patrik Karlsson to cope with some mDNS

implementations.
This commit is contained in:
david
2010-01-22 23:44:51 +00:00
parent 86c3be8180
commit e942244ba2

View File

@@ -67,7 +67,13 @@ end
local function gotAnswer(rPkt)
-- have we even got answers?
if #rPkt.answers > 0 then
-- some MDNS implementation incorrectly return an empty question section
-- if this is the case return true
if rPkt.questions[1] == nil then
return true
end
-- are those answers not just cnames?
if rPkt.questions[1].dtype == types.A then
for _, v in ipairs(rPkt.answers) do