]> granicus.if.org Git - pdns/commitdiff
zero the must-be-zero bits
authorPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 18 May 2018 15:36:27 +0000 (17:36 +0200)
committerPeter van Dijk <peter.van.dijk@powerdns.com>
Fri, 18 May 2018 15:36:27 +0000 (17:36 +0200)
pdns/pdns_recursor.cc

index dac86fb0c85f87a80861270b9e7af070b1c8b321..175145a1297a606de56581b477dcb41db2e80473 100644 (file)
@@ -1294,7 +1294,7 @@ static void startDoResolve(void *p)
          OPT record.  This MUST also occur when a truncated response (using
          the DNS header's TC bit) is returned."
       */
-      if (addRecordToPacket(pw, makeOpt(edo.d_packetsize, 0, edo.d_Z), minTTL, dc->d_ttlCap, maxanswersize)) {
+      if (addRecordToPacket(pw, makeOpt(edo.d_packetsize, 0, edo.d_Z & EDNSOpts::DNSSECOK), minTTL, dc->d_ttlCap, maxanswersize)) {
         pw.commit();
       }
     }