mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
Assert that we are dealing with IPv4 targets in reverse DNS.
This commit is contained in:
parent
2b093d6ada
commit
4e70079eb2
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue