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