1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-20 05:09:02 +00:00

Assert that we are dealing with IPv4 targets in reverse DNS.

This commit is contained in:
david
2013-04-22 21:56:08 +00:00
parent 2b093d6ada
commit 4e70079eb2

View File

@@ -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);