]> granicus.if.org Git - pdns/commitdiff
make sure we insert query size on query ring too
authorbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Dec 2015 22:04:19 +0000 (23:04 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Mon, 7 Dec 2015 22:04:19 +0000 (23:04 +0100)
pdns/dnsdist.cc

index a713144baabb60375ba6eab299e9c0a65f3f12fb..87aaf4703664c000e0bc38a7e06761b62a37d764 100644 (file)
@@ -516,7 +516,7 @@ try
       clock_gettime(CLOCK_MONOTONIC, &now);
       {
         WriteLock wl(&g_rings.queryLock);
-        g_rings.queryRing.push_back({now,remote,qname,qtype});
+        g_rings.queryRing.push_back({now,remote,qname,(uint16_t)len,qtype});
       }
       
       if(auto got=localDynBlock->lookup(remote)) {