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

Treat no-answers as NXDOMAIN

This commit is contained in:
dmiller
2024-04-26 17:25:41 +00:00
parent c840e236cb
commit 3cac585f69

View File

@@ -715,7 +715,7 @@ static void read_evt_handler(nsock_pool nsp, nsock_event evt, void *) {
}
info &reqinfo = infoI->second;
if (DNS_HAS_ERR(f, DNS::ERR_NAME))
if (DNS_HAS_ERR(f, DNS::ERR_NAME) || p.answers.empty())
{
process_request(ACTION_FINISHED, reqinfo);
if (o.debugging >= TRACE_DEBUG_LEVEL)