mirror of
https://github.com/nmap/nmap.git
synced 2026-08-04 06:40:48 +00:00
DNS::Factory::ptrToIp will now return false if sockaddr_storate_inet_pton fails
This commit is contained in:
parent
902a19b42e
commit
28ff5841bc
1 changed files with 1 additions and 2 deletions
|
|
@ -1429,8 +1429,7 @@ bool DNS::Factory::ptrToIp(const std::string &ptr, sockaddr_storage &ip)
|
|||
if(ip_str.empty())
|
||||
return false;
|
||||
|
||||
sockaddr_storage_inet_pton(ip_str.c_str(), &ip);
|
||||
return true;
|
||||
return sockaddr_storage_inet_pton(ip_str.c_str(), &ip);
|
||||
}
|
||||
|
||||
size_t DNS::Factory::buildSimpleRequest(const std::string &name, RECORD_TYPE rt, u8 *buf, size_t maxlen)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue