]> granicus.if.org Git - pdns/commitdiff
don't respond that we have edns limited information when we don't
authorbert hubert <bert.hubert@netherlabs.nl>
Wed, 11 Nov 2015 09:16:18 +0000 (10:16 +0100)
committerbert hubert <bert.hubert@netherlabs.nl>
Wed, 11 Nov 2015 09:16:18 +0000 (10:16 +0100)
pdns/lwres.cc

index dbe669b3cbbda95a407cd6e95590dae0cfadf4e6..6ca228949106fd26dbeea88d994282106febcaaf 100644 (file)
@@ -190,7 +190,7 @@ int asyncresolve(const ComboAddress& ip, const DNSName& domain, int type, bool d
          EDNSSubnetOpts reso;
          if(getEDNSSubnetOptsFromString(opt.second, &reso)) {
            cerr<<"EDNS Subnet response: "<<reso.source.toString()<<", scope: "<<reso.scope.toString()<<", family = "<<reso.scope.getNetwork().sin4.sin_family<<endl;
-           if(srcmask)
+           if(reso.scope.getBits())
              srcmask = reso.scope;
          }
        }