mirror of
https://github.com/nmap/nmap.git
synced 2026-01-01 04:19:02 +00:00
DNS::Factory::ptrToIp will now return false if sockaddr_storate_inet_pton fails
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user