1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-15 20:29:03 +00:00

Applied patch from Jah:

Attached corrects answerFetcher[types.TXT]() in dns.lua which inserts
v.data into answers only if v.domain is present - I believe the test
should be for v.data.  This was preventing TXT answers from being
returned from dns.query() with the retAll option.
This commit is contained in:
fyodor
2008-08-26 01:01:27 +00:00
parent 64a016a817
commit dc74809a68

View File

@@ -251,7 +251,7 @@ answerFetcher[types.TXT] =
else
local answers = {}
for _, v in ipairs(dec.answers) do
if v.domain then table.insert(answers, string.sub(v.data, 2)) end
if v.data then table.insert(answers, string.sub(v.data, 2)) end
end
return answers
end