ptrToIp: return false for non-matching addresses

This commit is contained in:
dmiller 2026-07-22 16:51:58 +00:00
parent a2db276f35
commit 206d06abfd

View file

@ -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;
}