]> git.ipfire.org Git - thirdparty/pdns.git/blobdiff - pdns/dnsdistdist/test-dnsdistrules_cc.cc
dnsdist: Set a correct EDNS OPT RR for self-generated answers
[thirdparty/pdns.git] / pdns / dnsdistdist / test-dnsdistrules_cc.cc
index 32fd6734358077994faeb63e35f4148e3c5e75b0..a402864068bb8e7b6e8b698b950cc5ad66b67db0 100644 (file)
@@ -32,7 +32,7 @@ BOOST_AUTO_TEST_CASE(test_MaxQPSIPRule) {
   /* the internal QPS limiter does not use the real time */
   gettime(&expiredTime);
 
-  DNSQuestion dq(&qname, qtype, qclass, &lc, &rem, dh, bufferSize, queryLen, isTcp, &queryRealTime);
+  DNSQuestion dq(&qname, qtype, qclass, qname.wirelength(), &lc, &rem, dh, bufferSize, queryLen, isTcp, &queryRealTime);
 
   for (size_t idx = 0; idx < maxQPS; idx++) {
     /* let's use different source ports, it shouldn't matter */