]> granicus.if.org Git - pdns/commitdiff
dnsdist: Fix warning message on invalid secpoll answer
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 17 Sep 2019 08:54:04 +0000 (10:54 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 17 Sep 2019 08:54:04 +0000 (10:54 +0200)
pdns/dnsdistdist/dnsdist-secpoll.cc

index 5bd32db18765ce70151bd507de8faf8547c5d10e..179779f15d3cdeeac279f7c8e3f55448acb91879 100644 (file)
@@ -159,7 +159,7 @@ static std::string getSecPollStatus(const std::string& queriedName, int timeout=
 
     if (ntohs(d.qdcount) != 1 || ntohs(d.ancount) != 1) {
       if (g_verbose) {
-        warnlog("Invalid answer (qdcount %d / ancount %d) received from the secpoll stub resolver %s", dest.toString());
+        warnlog("Invalid answer (qdcount %d / ancount %d) received from the secpoll stub resolver %s", ntohs(d.qdcount), ntohs(d.ancount), dest.toString());
       }
       continue;
     }