mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-04 05:15:07 -05:00
privops: remove debug message from PRV_Name2IPAddress()
The function may be called from a separate thread, but logging is not considered thread safe (e.g. due to using functions which read environment variables).
This commit is contained in:
@@ -618,7 +618,6 @@ PRV_Name2IPAddress(const char *name, IPAddr *ip_addrs, int max_addrs)
|
|||||||
req.op = OP_NAME2IPADDRESS;
|
req.op = OP_NAME2IPADDRESS;
|
||||||
if (snprintf(req.data.name_to_ipaddress.name, sizeof (req.data.name_to_ipaddress.name),
|
if (snprintf(req.data.name_to_ipaddress.name, sizeof (req.data.name_to_ipaddress.name),
|
||||||
"%s", name) >= sizeof (req.data.name_to_ipaddress.name)) {
|
"%s", name) >= sizeof (req.data.name_to_ipaddress.name)) {
|
||||||
DEBUG_LOG("Name too long");
|
|
||||||
return DNS_Failure;
|
return DNS_Failure;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user