mirror of
https://github.com/nmap/nmap.git
synced 2026-06-26 11:12:00 +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:
parent
64a016a817
commit
dc74809a68
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue