]> git.ipfire.org Git - thirdparty/pdns.git/commitdiff
dnsdist: Use toLogString for the qname to prevent an error if it's empty 12646/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Mar 2023 00:39:45 +0000 (01:39 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 14 Mar 2023 00:39:45 +0000 (01:39 +0100)
pdns/dnsdistdist/doh.cc

index ed29758b8f17f4e05556ee49cd74ba172c4f0741..657fdf9272eaa87290199f1c48eec3460e815a33 100644 (file)
@@ -771,7 +771,7 @@ static void processDOHQuery(DOHUnitUniquePtr&& du)
       throw;
     }
 
-    vinfolog("Got query for %s|%s from %s (https), relayed to %s", ids->qname.toString(), QType(ids->qtype).toString(), remote.toStringWithPort(), du->downstream->getName());
+    vinfolog("Got query for %s|%s from %s (https), relayed to %s", ids->qname.toLogString(), QType(ids->qtype).toString(), remote.toStringWithPort(), du->downstream->getName());
   }
   catch (const std::exception& e) {
     vinfolog("Got an error in DOH question thread while parsing a query from %s, id %d: %s", remote.toStringWithPort(), queryId, e.what());