From 4e70079eb2296d1f6c2fe5d1a8ce9006d105dcca Mon Sep 17 00:00:00 2001 From: david Date: Mon, 22 Apr 2013 21:56:08 +0000 Subject: [PATCH] Assert that we are dealing with IPv4 targets in reverse DNS. --- nmap_dns.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/nmap_dns.cc b/nmap_dns.cc index be86cb528..4c0b9bbef 100644 --- a/nmap_dns.cc +++ b/nmap_dns.cc @@ -1159,6 +1159,7 @@ static void nmap_mass_rdns_core(Target **targets, int num_targets) { if (!((*hostI)->flags & HOST_UP) && !o.resolve_all) continue; // See if it's in /etc/hosts or cached + assert((*hostI)->af() == AF_INET); tpname = lookup_etchosts((u32) (*hostI)->v4hostip()->s_addr); if (tpname) { (*hostI)->setHostName(tpname);