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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user