mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 14:49:29 +00:00
ptrToIp: return false for non-matching addresses
This commit is contained in:
parent
a2db276f35
commit
206d06abfd
1 changed files with 3 additions and 0 deletions
|
|
@ -1801,6 +1801,9 @@ bool DNS::Factory::ptrToIp(const std::string &ptr, sockaddr_storage &ip)
|
|||
}
|
||||
ip.ss_family = AF_INET6;
|
||||
}
|
||||
else {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue