]> git.ipfire.org Git - thirdparty/chrony.git/commitdiff
privops: remove debug message from PRV_Name2IPAddress()
authorMiroslav Lichvar <mlichvar@redhat.com>
Mon, 11 Nov 2019 16:59:26 +0000 (17:59 +0100)
committerMiroslav Lichvar <mlichvar@redhat.com>
Tue, 19 Nov 2019 13:43:01 +0000 (14:43 +0100)
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).

privops.c

index 5513bdaad9f7d58981185582e7c759e05b5eb9d8..036e8f27c463e5058f0c99e8164aa5f252683375 100644 (file)
--- a/privops.c
+++ b/privops.c
@@ -618,7 +618,6 @@ PRV_Name2IPAddress(const char *name, IPAddr *ip_addrs, int max_addrs)
   req.op = OP_NAME2IPADDRESS;
   if (snprintf(req.data.name_to_ipaddress.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;
   }